Go Back   Velocity Reviews > General Computer Discussion > Software
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Search this Thread
Old 10-25-2006, 08:00 AM   #1
Default Session handling in ASP.Net 2.0


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
rammca is offline   Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

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




SEO by vBSEO 3.3.2 ©2009, Crawlability, Inc.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46