Click here to Skip to main content
15,910,471 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello Friends,
I have a web application in ASP.NET & VB.NET, in that application when user logged in then user status become "Online".
Now, i want track that user & update status as "Off Line" after session finish let say after
1Hr. or user shutdown him PC or close application by browser cross button.

I have tried with Global.asax in Session_End event but not working properly.

Can you please help me on this?
Posted
Comments
Kornfeld Eliyahu Peter 11-Jun-14 2:32am    
What do you mean by 'not working properly'?
Mukesh Ghosh 11-Jun-14 3:03am    
I have set timeout 5 min in config, but not session end event fires.
<sessionstate mode="InProc" stateconnectionstring="tcpip=127.0.0.1:42424" sqlconnectionstring="data source=127.0.0.1;Trusted_Connection=yes"
="" cookieless="false" timeout="5">
Kornfeld Eliyahu Peter 11-Jun-14 4:27am    
That 5 minute start kicking from the last time user interacted with server using the IIS session, so every time user does something (actively or not) the timer starts from fresh. You better connect your site, do some action, than close the browser at all to check session time-out...

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900