Invalidating session on window close

This is the underlying functionality that enables “Remember me” login functions for example.Use PHP’s built-in session handler You may just as well take advantage of the built-in functionality in PHP – as long as you remember that default settings may not always be what you want, and they may not always be secure enough for your project.A huge collection to provide black dick fucks indian girls videos and a big chance to view some of the hottest bitches in India getting nasty on cam in superb adult XXX scenes.

invalidating session on window close-38invalidating session on window close-79

Actually I have 3 scenarios to close session: 1.- A user close session using a button.

2.- A user close the browser, so you call before Close using javascript 3.- The session timeout expiry.

In my application i am allowing only 3 admin users at a time to log in to the application.

A lot of times we have requirement to do some stuff like invalidating session whenever user clicks browser close button thereby invoking close event in browser. In Java Script we have events such as onbeforeunload and onunload.

These events as their name suggest, gets triggered whenever the page gets unload.

when user's browser craches or colse unexpectedly then what is the correct way to invalidate the session instead waiting for time-out of session?

You must have an account to comment. Please register or login here!