Session should not expire until user logs out in ASP.Net

Last Reply on Apr 23, 2014 04:04 AM By Gaurav13

Posted on Apr 23, 2014 03:16 AM

Hello,

how to maintain the session that does't expair  unless and until user logout. 

Posted on Apr 23, 2014 03:21 AM

Session will get expired according to default time which is 30 (min.1440 seconds).  But you can increase the session time out time.

Refer:

  1. How to increase Session Timeout in ASP.Net Web Application

Posted on Apr 23, 2014 04:04 AM

The timeout attribute cannot be set to a value that is greater than 525,601 minutes (1 year) for the in-process and state-server modes.

By default the mode is InProc for an asp.net web application.

<sessionState
    mode="[Off|InProc|StateServer|SQLServer|Custom]"
    timeout="number of minutes"............

   ....../>

I agree, here is the link: https://www.e-iceblue.com/Introduce/spire-office-for-net-free.html