Page 1 of 1

SESSIONs

Posted: Thu Sep 02, 2004 3:37 am
by ol4pr0
i have read the pervious post about the sessions that couldnt be destroyed.

i have php 5 installed at home and php 4 installed on the server both give me the same problem

Code: Select all

<?
session_start();
$_SESSION = array();
session_destroy();
session_unset("x");
session_unset("y");
session_unset("z");
?>
Tried them almost all i think. however they are not being destoyed or unset. Only a closing browser will unset them.

Posted: Thu Sep 02, 2004 7:27 am
by duk
just

Code: Select all

<?php

session_start();
session_unset();

?>
will not unset all variables ????

i use this and unset all variables...

Posted: Thu Sep 02, 2004 8:21 am
by anjanesh
Had same problem before.
This fixed it though

Code: Select all

session_unset();
$_SESSION = array();
session_destroy();
setcookie(session_name(),"",0,"/");

Posted: Thu Sep 02, 2004 12:59 pm
by ol4pr0
Thanks that most certenly did it lol