Click here to Skip to main content
15,898,721 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
When I start the application through login and after login home page open of application. When session is lossed then login again open home page but I want to after login open working page whichever session is lossed. So please help me.
Posted
Updated 12-Jan-12 18:15pm
v2
Comments
ManavGuru 13-Jan-12 0:19am    
you should be use session expire on your logout button.

You might be looking for something like this.
http://www.4guysfromrolla.com/webtech/tips/t022800-1.shtml[^]
 
Share this answer
 
Write down the code on your logout button click event,

C#
try
{
    Session.Abandon();
    Session.Clear();
    Response.Redirect("loginPage.aspx");
}
catch (Exception ex)
{
    //Handle exception here
}
 
Share this answer
 
Hi narendar,

go through below url and download ASPNET_jQueryUI_Dialog_Timeout example try it

working fine
https://skydrive.live.com/?cid=f7c93b143c55f787&sc=documents&id=F7C93B143C55F787%21230#cid=F7C93B143C55F787&sc=documents

or

in web.config

HTML
<sessionstate mode="StateServer" timeout="360" />


i hope this is help you
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900