Re: logout
| From: | Jacky@lilst | Date: | Tue, 27 Feb 2001 22:16:21 +0000 |
| Subject: | Re: logout | ||
| References: | 1 2 3 4 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-41819@lists.php.net to get a copy of this message | ||
So what do I do? make it like link to the logout file like this? : <a
href="logout.php3">logout</a> and at the logout file, can I do this?
<?php
db connection stuffs goes here
session_destroy("sessionUserName")
session_destroy("sessionPasword")
header ("Location: http://www.homepage.com");
?>
I forgot to mention that It also had cookies to, is there any way to do the
same with cookies?
Jack
jacky@activelifestyle.com
"There is nothing more rewarding than reaching the goal you set for
yourself"
----- Original Message -----
From: John LYC <john@edlabs.com>
To: Jacky@lilst <jacky@activelifestyle.com>
Cc: Yamin Prabudy <phplist@pro.net.id>; <php-general@lists.php.net>
Sent: Tuesday, February 27, 2001 3:07 AM
Subject: Re: [PHP] logout
> if you are using session....
> session_destroy might do the trick...
>
>
>
> "Jacky@lilst" wrote:
>
> > Sorry, it was my mistake. There is session used to store userID and
password
> > after the successful login. I don't under stand what you mean about to
clean
> > up variables, how?
> > Jack
> > jacky@activelifestyle.com
> > "There is nothing more rewarding than reaching the goal you set for
> > yourself"
> > ----- Original Message -----
> > From: Yamin Prabudy <phplist@pro.net.id>
> > To: Jacky@lilst <jacky@activelifestyle.com>
> > Sent: Tuesday, February 27, 2001 2:40 AM
> > Subject: Re: [PHP] logout
> >
> > > but still you had the variable hanging on the cookies while you are
> > running
> > > the login function...
> > > just clean out all the variables and then you had a log out function
> > (clean
> > > all the cookies) if you don't used cookies how do you transfer all the
> > login
> > > variable ?
> > > ----- Original Message -----
> > > From: Jacky@lilst <jacky@activelifestyle.com>
> > > To: <php-general@lists.php.net>
> > > Sent: Wednesday, February 28, 2001 4:14 AM
> > > Subject: [PHP] logout
> > >
> > >
> > > I have php site that user is required to login, but I don't have
logout
> > > function yet. Is there anyone know the most practical way of logout
method
> > > that people use nowadays?, in php I mean. There is no session or
cookies
> > > used in this site.
> > > Jack
> > > jacky@activelifestyle.com
> > > "There is nothing more rewarding than reaching the goal you set for
> > > yourself"
> > >
> > >
> > >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> > For additional commands, e-mail: php-general-help@lists.php.net
> > To contact the list administrators, e-mail: php-list-admin@lists.php.net
>
>