i follwod the below thread for getting online users count :
it seems every thing is working and fine!
but my focus is on timeout of SessionState :
<system.web> <sessionState mode="InProc" cookieless="false" timeout="20" /> </system.web>
i set that timeout on 1 minutes for get best results of online users!
but there is a problem here!
i want to keep my users alive about 2 or 3 hours on web site, so they do n't need login again and again to web site.
is there a way to do something at
start of timeout in SessionState?
thanks in davance
preguntado el 08 de noviembre de 11 a las 09:11
If you want to keep users logged in, but don't want to use session state to store their login information then you will have to rely on some other information to check to see who the user is.
This would probably entail writing out a cookie, and then when an unlogged (as far as session state is concerned) user enters the web site attempt to automatically log them in using the information in the cookie.
It would be much easier (and probably more secure, easier to maintain and in many other ways better) to just use an out of proc session server (e.g. SQL Server) and then just set the session timeout to 180 minutes.