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
[EMAIL PROTECTED]
"There is nothing more rewarding than reaching the goal you set for
yourself"
----- Original Message -----
From: John LYC <[EMAIL PROTECTED]>
To: Jacky@lilst <[EMAIL PROTECTED]>
Cc: Yamin Prabudy <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
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
> > [EMAIL PROTECTED]
> > "There is nothing more rewarding than reaching the goal you set for
> > yourself"
> > ----- Original Message -----
> > From: Yamin Prabudy <[EMAIL PROTECTED]>
> > To: Jacky@lilst <[EMAIL PROTECTED]>
> > 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 <[EMAIL PROTECTED]>
> > > To: <[EMAIL PROTECTED]>
> > > 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
> > > [EMAIL PROTECTED]
> > > "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: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to