Posted by M. Sokolewicz on 03/16/05 13:55
William Stokes wrote:
> Hello,
> Again this might be more of a HTML quetion. If so sorry about that.
>
> Anyway I was just trying to make a log out button to a page. It should end a
> session or/and close browser window. (Closing browser ends the session as
> well I think?
no
)
>
> All variable values are deleted when browser is closed. Right?
no
>
> Can anyone help?
>
> Thanks
> -Will
Make a button. In the submitted form, get the session-id, destroy the
data, and remove the cookie. The output some JS to close the window.
see http://www.php.net/session_destroy for more info
[Back to original message]
|