rather have a link like -> somepage.php?signout=true
on that page...
if($_GET['signout'] == true){
session_destroy();
header("location: someotherpage.php");
}else{
// do something else
}
"Natalia Sensini" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
I want to destroy a s
rather have a link like -> somepage.php?signout=true
on that page...
if($_GET['signout'] == true){
session_destroy();
header("location: someotherpage.php");
}else{
// do something else
}
"Natalia Sensini" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
I want to destroy a s
Take a look at the manual. There is a session_destroy() function:
http://www.php.net/session
Natalia Sensini wrote:
I want to destroy a session when you click in a sing out link,
something like this
a href= link
onClick="session_destroy()"
Is ti possible? how?
--
PHP General Mailing List (http:/
yes but the variables are still held and would be available if you knew the
session id. until the garbage collection clears it out the session variables
are still there. the session doesn't die when the browser closes, just the
browser's reference to it.
Tim Ward
Please refer to the fol
Afaik, the session will die automatically when IE gets closed.
Or at least the cookie that links to that session.
Elias
"Christian Ista" <[EMAIL PROTECTED]> wrote in message
000101c24384$442ab9b0$c000a8c0@p3portable">news:000101c24384$442ab9b0$c000a8c0@p3portable...
> Hello,
>
> Is it possible t
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED]
says...
> is there any way to destroy a session automaticly when a user closes down
> you page?
> And preferably perform an action like a database removal at the same time.
Have a look at the Connection Handling section of the manual, and the
fu
6 matches
Mail list logo