Testing if session_end fires

R

rsford31

I have an application where users are assigned roles: control (can edi
items, delete items add items), update (can update items) and read (ca
only read content). When the user logs into the web app, thei
information is stored in a CurrentUsers table. The app checks thi
table to ensure that no one else has logged in with the same role. I
there is the user is put into read mode. So will happen if the use
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 eithe
have the service centre remove you from the table or to wait for th
session to time out. When the session times out, the session_end i
called and a delete statement is created to remove the user from th
current users table. The problem is, this doesn't always happen. If
user logs into the application, moves away from the site but keeps th
browser open, navigates back to the app, logs in again (will be in rea
mode) and then closes the browser, they will be in the table twice wit
the same sessionid. It seems like after the 15 mins has elapsed, the
are not removed from the the table. It's like the session_end is no
being fired. Is there anyway to check if it is being fired or if its m
delete statement? Thanks
 

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


Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,226
Members
46,815
Latest member
treekmostly22

Latest Threads

Top