Snig said:
Hi guys
How can I make the session in an ASP.NET application so that it NEVER
EXPIRES ?
thanks
I don't think you want that. If a user opens an other instance of his
browser, he gets a new session. If a session never expires, then data
from that session would hang around (=take up precious memory)
"forever". There is no way to go "back" to such an abandoned session.
The session doesn't automatically vanish when the user "navigates away"
or "closes his browser".
What you might want is a way to keep the session alive as long as that
user displays a page of your site. You could do that by refreshing that
page often enough (automatically: see <meta http-equiv=refresh>) to beat
the session timeout. Maybe you could refresh a special page that is
displayed in an iframe in some corner of your screen, if you don't want
to refresh the entire screen.