Session Unset killing ALL sessions including user register ?
Posted: Fri Aug 31, 2007 2:56 pm
hi
I have to unset sessions at the beginning of every page because i have website where a php script operates in an
iframe (because Im not good with ajax yet)
it works good. the problem is when you go to another page the script is set by things previously set on another page
and they're irrelavent to the new page.
So i used session unset(). and it worked. but its also killing off the user_email session.
I used unset() like this as example:
Nowhere did i turn off the user_email but its slappin it out of there .
what do you think?
Thank You
I have to unset sessions at the beginning of every page because i have website where a php script operates in an
iframe (because Im not good with ajax yet)
it works good. the problem is when you go to another page the script is set by things previously set on another page
and they're irrelavent to the new page.
So i used session unset(). and it worked. but its also killing off the user_email session.
I used unset() like this as example:
Code: Select all
<?php
session_start();
$_SESSION['user_email'];
?>
<?php
session_unset($_SESSION['product_1'] );
session_unset($_SESSION['product_2'] );
session_unset($_SESSION['product_3'] );
?>Nowhere did i turn off the user_email but its slappin it out of there .
what do you think?
Thank You