Testing if session_end fires

Joined
Jun 10, 2005
Messages
1
Reaction score
0
I have an application where users are assigned roles: control (can edit items, delete items add items), update (can update items) and read (can only read content). When the user logs into the web app, their information is stored in a CurrentUsers table. The app checks this table to ensure that no one else has logged in with the same role. If there is the user is put into read mode. So will happen if the user does not properly log out which leaves their session in the database. The only way to be able to log in with the correct role is to either have the service centre remove you from the table or to wait for the session to time out. When the session times out, the session_end is called and a delete statement is created to remove the user from the current users table. The problem is, this doesn't always happen. If a user logs into the application, moves away from the site but keeps the browser open, navigates back to the app, logs in again (will be in read mode) and then closes the browser, they will be in the table twice with the same sessionid. It seems like after the 15 mins has elapsed, they are not removed from the the table. It's like the session_end is not being fired. Is there anyway to check if it is being fired or if its my delete statement? The SessionState is set to InProc. Thanks!
 
Last edited:

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Session_Start/Session_End 3
global.aspx and session_end event 8
Global.asax: Session_End() Behavior 12
session_end 4
Session_End not firing 6
Session_End never fires 9
Session_End 3
Session_end Global.asax 4

Back
Top