Session timing out frequently

S

suspended

My website session is timing out frequently. I have modified the
web.config file such that

<sessionState timeout="60"/>

and also at the Page_load, I have assigned
Session.Timeout = 60;

but my session expires in about 5 minutes. What is going on and how to
fix it?

Thanks.
Jess
 
S

Siva M

Hello,

Apart from the session timeout value, the following would also cause the
session to end:
1. Changes made to web.config
2. Changes to the bin folder
3. Changes to global.asax

Make sure none of the above is not happening in your case. Also, some
anti-virus applications modify the above files/folders causing the session
to end.

My website session is timing out frequently. I have modified the
web.config file such that

<sessionState timeout="60"/>

and also at the Page_load, I have assigned
Session.Timeout = 60;

but my session expires in about 5 minutes. What is going on and how to
fix it?

Thanks.
Jess
 
G

Guest

Jess,
Also, Indexing Service is know to be problematic. If you do not really need
Indexing Service (very few people do) then turn it off and set to Disabled in
Services applet.

Finally, loss of session is almost always caused by App Pool recycling or
anything that causes the ASPNET process to recycle - session, cache and
everything else goes away with the old one. So if you have unhandled
exceptions in your app (especially in ASP.NET 2.0), it could be your
application itself that's causing the problem.
Peter
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top