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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Script wanted

Status
Not open for further replies.

mcjdaddy

Instructor
Dec 17, 2003
37
0
0
US
I have a system that runs a call center. Everyone works from an Internet Explorer Web Interface that talks to my SQL database. The problem I am trying to solve is login/logout times. I have the system time stamped when a user logs in or out but when the user forgets to logoff or I don't have anything.

Does anyone know of a script or a solution that will monitor on ideal events of a web browser and then perform a command when necessary based on an ideal time? For example send a logoff command and time stamp the database.

 
I don't know of any script per se but here is how I would approach it (although I've never done this in a real life situation and I coule be way off)

I would set a session variable that expires after however long you want inactive users to be automatically logged out (10 minutes or something). Everytime the users performs a function then this counter is reset. You would need to periodaccly check everyones session counters and if they have expired then log them out.

Maybe someone else can fill in the blanks or come up with another suggestion

MrBelfry
 
It must be done at server side scripting... not client side.

What language are you using? php? asp? cfm? etc.?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top