Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Keep a session alive with a database.

Status
Not open for further replies.

fergman

Technical User
Oct 19, 2000
91
US
Is it possible to keep a session alive by writing a 1 or 0 or something next to the username in a database? If so, how would you erase that piece when they close their browser or something.
 
If u r trying to know whether user id logedin at database then U can write 1 for that userid as soon as user logs in.
To know whether user session is completed then u need to write a code which will write 0 for that user in Global.asa in session_onend event.

hope this helps!

srinu...
 
thread333-225367 Rushi Shroff Rushi@emqube.com
"Life is beautiful."
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top