Session destroy on window close.

Vinay Kannan <[email protected]>
Newsgroups gmane.comp.php.windows
Message-ID <CANSHHpkf=KdtZWHQUxz=fGtKm5naG0bJc-E+7bOh5xWqZ+AQ8g@mail.gmail.com>
Hi Guys,

Any idea as to how we can destroy a PHP session on window close and not
only when the user clicks on logout link? There is a chance that the same
application can be used by different users with different
access privileges on the same computers. Right now m entirely depending on
$_SESSION variables to define the access privileges to each user, is this
the best method in terms of security?

Thanks,
Vinay Kannan.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.