
December 3rd, 2003, 02:33 AM
|
|
Junior Member
|
|
Join Date: Dec 2003
Location: NSW
Posts: 2
Time spent in forums: < 1 sec
Reputation Power: 0
|
|
function AFTER window close.
On my page I have a login section set up. If the login is valid a cookie is placed on the users machine so that they may freely view the restricted area. When the "logout" the cookie is deleted. Every page that I chose checks to make sure users have this cookie and if not they are redirected back to the login page (which itself closes after 20 seconds or 3 invaild inputs). HOWEVER, if the user doesnt click logout the cookie stays there. I am looking for a script that knows when the window is closed so I can call the delete cookie function. Basically a script to execute after a window has been closed. How do I do this??
|