Session variable timeout

Hello,

I need some session variables in my application to stay active for 30 days and some for 30 min.  I researched that you can set this in web.config but how do I set this differently for 30 days and 30 mins?

Also, how can I check if the session is timed out and the user needs to login again?

thanks
perlwhiteAsked:
Who is Participating?
 
StephanConnect With a Mentor Lead Software EngineerCommented:
You can set the timeout programmaticly
But you can only set the timeout globally per session (and not per item)

Regarding the session timeout check, please read this article:

http://blogs.msdn.com/b/nikhiln/archive/2007/06/21/detecting-session-timeout-in-asp-net-2-0-web-applications.aspx
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.