![]() |
|
|
|
#1 |
|
Hi All,
I am a new member. I am working in an ASP.Net 2.0 project. I need to keep track of user sessions in the database. ie. I have a table called users which consists of the following fields : Username, Password, IsLoggedIn, LastLoggedIn, LastLoggedOut. When a user logs in , I'll update the IsLoggedIn field to 1 and LastLoggedIn fields and similarlly when the user logs out , I'll update the IsLoggedIn field to 0 and LastLoggedOut fields. The thing is it works fine. But if the user closes the browser or visits some other web site , instead of logging out , I couldn't update the table. I tried by writing code in Session_On_End event but it fires only when the person logs out or the session expires. How to do this?. Please throw some light on the same. Thanks in advance. Waiting for u'r responses. Regards, S.Ramalingam rammca |
|
|
|
|
![]() |
| Thread Tools | Search this Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| ASP.Net Session Cookie Lost on mozilla/netscape After return from cross domain | saurabhm | Software | 3 | 09-18-2009 12:36 PM |
| ASP.NET: Asign Users in Roles(Array.IndexOf(Of String) method) | msandlana | Software | 0 | 04-25-2008 06:37 AM |
| session from asp to asp.net | imman | General Help Related Topics | 0 | 02-20-2008 06:27 PM |
| Handling frames in asp.net | rizwan_087 | Software | 2 | 04-23-2007 07:12 AM |
| Storing class with session (ASP.Net) | bqmassey | Software | 0 | 09-22-2006 05:37 PM |