All about session expiration

Posted by Gayathri under ASP.NET on 6/25/2013 | Points: 10 | Views : 1509 | Status : [Member] | Replies : 2
I need to write a code like this in my website

Your Session Expired ...please login again .

The session should expire after 30 mnts .
please help me with the code.




Responses

Posted by: Ujjal on: 6/25/2013 [Member] Starter | Points: 25

Up
0
Down
http://www.aspdotnet-suresh.com/2012/06/jquery-show-session-timeout-message.html

Hope this link will be helpful 4 u.

Gayathri, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: perfectchourasia-9163 on: 6/26/2013 [Member] Starter | Points: 25

Up
0
Down
Use Below code as per requirement.
Session["IsLoggedIn"] = "true";
Session.Timeout = 30;
Response.write(<script>alert('Session expired. please login again. ')</script>)


ER sandeep chourasia
sandeepchrs@yahoo.com (on facebook)
http://www.aspnetcodes.com/

Gayathri, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response