UBB.Dev
Posted By: Kordegnen Auto logout vhen closing browser - 12/10/2001 1:19 PM
I need a script that logs my users out vhen they close the browser, alternative leave the board.

Please, any ideas ???
Posted By: Atar Re: Auto logout vhen closing browser - 12/17/2001 11:36 AM
*bumb*

yes, I would need something like this too. Or an option to disable cookies when loging in... Most of my members log on to the UBB from a network on school. Then, if anyone else gets behind the computer this first person has been on he gets his name, and could change passwords/email adress and post under his name....
I instructed them all to log out, but most of them are n00bs
Posted By: Caspe7 Re: Auto logout vhen closing browser - 12/20/2001 8:40 PM
I'm can't really do this.. cuz I suck at coding.. but I beleive there could be two ways to do this.

1st Like another board I seen, let the user put in a time of how long they want to be log in.

2nd way is just like when you go to porn sites a pop up comes up when you closed the browser. When this pop up comes up, It will run the script delete ubb cookie, and will logs you out. and just have after its done with that will run a script close window so makes it easy for the users, so they don't have to go to too much work of closing it

[ 12-20-2001 12:45 PM: Message edited by: HybridPWF ]
Posted By: LK Re: Auto logout vhen closing browser - 12/20/2001 8:46 PM
[code][/code]It should appear once, but WOL/PM notification also have it.
Posted By: Boubou Re: Auto logout vhen closing browser - 12/22/2001 3:10 AM
hmmm i find

-path => '/',
-expires => '-2y'


5x

the first i change ???
Posted By: Kordegnen Re: Auto logout vhen closing browser - 12/22/2001 11:00 AM
look again, its there 2 times ;O) and it looks almost even.

By the way it works great, you just have to delete the old cookie and set a new one, the new one then logs you out every time you close the browser
thanx LK

thomas
© UBB.Developers