You say that you need to log in again, are you sure it is your Session that is expiring? Because when you're using Forms Authentication, the problem is not your session that expires, but your forms authentication cookie....
default session time is 10 minutes, however you may also increase it to some extent, but the situation you mentioned requires cookies to be implemented, since they can be permanent easily
HassanSajedi...
Member
8 Points
21 Posts
Session in asp.net
May 07, 2012 07:36 AM|LINK
Hello,
I have a website and whenever user leave copmuter and come back after some minutes users sessions has cleared and must be login again,
i want to session keep permanent.
thank's for help.
Rajneesh Ver...
All-Star
36791 Points
6749 Posts
Re: Session in asp.net
May 07, 2012 07:39 AM|LINK
See:
http://www.dotnetcurry.com/ShowArticle.aspx?ID=453
http://snipplr.com/view/14837/
http://www.beansoftware.com/ASP.NET-Tutorials/Keep-Session-Alive.aspx
www.rajneeshverma.com
Keep Forums Clean || Use Alert Moderators.
hans_v
All-Star
35986 Points
6550 Posts
Re: Session in asp.net
May 07, 2012 07:41 AM|LINK
You say that you need to log in again, are you sure it is your Session that is expiring? Because when you're using Forms Authentication, the problem is not your session that expires, but your forms authentication cookie....
Ruchira
All-Star
42876 Points
7015 Posts
MVP
Re: Session in asp.net
May 07, 2012 03:58 PM|LINK
Hello,
Are you using Form Authentication? If so, check the following link.
http://weblogs.asp.net/scottgu/archive/2005/11/08/430011.aspx
My Tech blog | TwitterPlease 'Mark as Answer' if this post helps you.cYpH3r x3r0
Member
327 Points
107 Posts
Re: Session in asp.net
May 07, 2012 04:10 PM|LINK
default session time is 10 minutes, however you may also increase it to some extent, but the situation you mentioned requires cookies to be implemented, since they can be permanent easily