Hey all. For some reason whenever i refresh the page my session variable that is set as my class type is destroyed while all my other session variables stay. Any ideas?
If it’s only one element in the $_SESSION array that is being lost, then we can’t help you with such little information. There must be somewhere in the code that is unsetting the variable.
It may be that the class is not being stored correctly in the session. Are you trying to store an object, such as:
[php]$test = new SomeObject;
$_SESSION[‘test’] = $test;[/php]