Sign In| Join
Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Feb 24, 2012 08:52 AM by hans_v
0 Points
1 Post
Feb 24, 2012 02:06 AM|LINK
Hi,
I am new to ASP and having issues with session state. I have the following in my web.config file.
<authentication mode="Forms">
<forms loginUrl="~/Account/Login.aspx" defaultUrl="Home.aspx" timeout="500" slidingExpiration="true" />
</authentication>
<sessionState timeout="500" mode="InProc"></sessionState>
Also, IIS session state time out is set to 500 minutes.
As per the documents i have read, the session should not expire untill 500 minutes but some how my session is getting killed in 20 minutes.
Can someone help me on this?
Thank you in advance.
Contributor
4394 Points
1102 Posts
Feb 24, 2012 02:21 AM|LINK
There is a max cap for timeout's for all servers. For ASP.net, 20 minutes sounds about right. All servers have to timeout. It's a built in fail safe.
Star
11228 Points
1792 Posts
Feb 24, 2012 03:43 AM|LINK
hi
here you can find about session indetail
http://forums.asp.net/t/1283350.aspx
Thanksk,
Member
21 Points
49 Posts
Feb 24, 2012 06:03 AM|LINK
same problem i am facing
kunal
378 Points
81 Posts
Feb 24, 2012 08:11 AM|LINK
How are you testing your session ? to know if you are logged ?
You can set base value, on IIS, in your website properties, click on ASP => Session Properties => Timeout => and put your new value.
All-Star
35998 Points
6551 Posts
Feb 24, 2012 08:52 AM|LINK
mambaty <authentication mode="Forms"> <forms loginUrl="~/Account/Login.aspx" defaultUrl="Home.aspx" timeout="500" slidingExpiration="true" /> </authentication> <sessionState timeout="500" mode="InProc"></sessionState>
You're mixing up Forms Authentication TimeOut and Session TimeOut, which don't have anything to do with each other. Tou say "but some how my session is getting killed in 20 minutes.", but what problem do you encounter?
mambaty
0 Points
1 Post
SessionTimeOut issue
Feb 24, 2012 02:06 AM|LINK
Hi,
I am new to ASP and having issues with session state. I have the following in my web.config file.
<authentication mode="Forms">
<forms loginUrl="~/Account/Login.aspx" defaultUrl="Home.aspx" timeout="500" slidingExpiration="true" />
</authentication>
<sessionState timeout="500" mode="InProc"></sessionState>
Also, IIS session state time out is set to 500 minutes.
As per the documents i have read, the session should not expire untill 500 minutes but some how my session is getting killed in 20 minutes.
Can someone help me on this?
Thank you in advance.
adamturner34
Contributor
4394 Points
1102 Posts
Re: SessionTimeOut issue
Feb 24, 2012 02:21 AM|LINK
There is a max cap for timeout's for all servers. For ASP.net, 20 minutes sounds about right. All servers have to timeout. It's a built in fail safe.
srinivaskotr...
Star
11228 Points
1792 Posts
Re: SessionTimeOut issue
Feb 24, 2012 03:43 AM|LINK
hi
here you can find about session indetail
http://forums.asp.net/t/1283350.aspx
Thanksk,
Srinivas Kotra.
KunalVishwak...
Member
21 Points
49 Posts
Re: SessionTimeOut issue
Feb 24, 2012 06:03 AM|LINK
Hi,
same problem i am facing
kunal
~~~~~~~~~~~~~~~~~~~~~~~~~~~
Thanks,
Kunal
giop
Member
378 Points
81 Posts
Re: SessionTimeOut issue
Feb 24, 2012 08:11 AM|LINK
How are you testing your session ? to know if you are logged ?
You can set base value, on IIS, in your website properties, click on ASP => Session Properties => Timeout => and put your new value.
Please Mark as Answer if it helps :)
hans_v
All-Star
35998 Points
6551 Posts
Re: SessionTimeOut issue
Feb 24, 2012 08:52 AM|LINK
You're mixing up Forms Authentication TimeOut and Session TimeOut, which don't have anything to do with each other. Tou say "but some how my session is getting killed in 20 minutes.", but what problem do you encounter?