Re: Re: php logout
From: steve (UseLinkToEmail_at_dbForumz.com)
Date: 11/05/04
- Previous message: Theo: "Re: mail() and mime problem"
- In reply to: HawkEye: "Re: php logout"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 4 Nov 2004 20:58:37 -0500
"HawkEye1" wrote:
> King of Red Lions wrote:
> > Hi I have an admin section to my site and was wondering, how can
I
> > create a link that logs you out?
>
> Assuming you are using sessions for your authentication just call
the
> session_destroy() function when the logout button is clicked.
>
> HTH
>
Most likely you also have a cookie (?), and then you may want to
destroy the cookie on logout. So you can read about that elsewhere,
but essentially you set the expiration date to sometime in the past to
make that happen.
-- http://www.dbForumz.com/ This article was posted by author's request Articles individually checked for conformance to usenet standards Topic URL: http://www.dbForumz.com/PHP-logout-ftopict167563.html Visit Topic URL to contact author (reg. req'd). Report abuse: http://www.dbForumz.com/eform.php?p=561679
- Previous message: Theo: "Re: mail() and mime problem"
- In reply to: HawkEye: "Re: php logout"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]