Click here to Skip to main content
15,887,267 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi!
i want to change the status of user when the session automatically expires.i have a table user with field status.when the user logins i change its status to online and when the user log off the status is changed to offline.
but when the session automatically expires the status remains online ...i want to change its status to offline..i know in page load i can check when session["username"]==null then in that block i will write the code..but i need the value of session variable..so that i pass it to the function and change the status against that username....is there any way to store that value of session variable some where else so that when session expires even then i could get the value of session variable
Posted

1 solution

Update my DB Table on Session Timeout[^] - Article seems to reference what you are wanting.
 
Share this answer
 

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