I have a Application which Session Expire in 30 minutes. How can i stop Session Expire of Application ?
Process Handler in C#
Collapse
X
-
If you're talking about web applications... .
then sessions don't expire in minutes or seconds....
Session expires when the browser is closed....
i think there's a bit of confusion..... could you repeat the question in detail -
The default Session timeout is 20minutes, you can adjust as required.
Sessions (on the server side) do NOT expire when the browser is closed.
The browser loses track of the Session id string(long unique ID string), but the session is still active.
There are settings for you ASP.NET webpage or the service as a whole. It may be possible to adjust the value in the web.config file, but I've only done it though the IIS administration tool.
Side note: Simply doing -anything- on the website will extend the timeout. So everytime the user requests a page from the server, the timeout is reset back to 30mins.
One solution is to have a very SHORT session timeout, and then have each of your pages send a background "heartbeat" request. If the user closes the window, the heartbeats don't happen and the session will expire very quickly.Comment
Comment