Okay, why is session preservation such a pain? I have db connect script along with a login check script as an include on every php page that I have (included on first line of every php page). Other elements that exist on my page are forms that use
<? echo $PHP_SELF;?>
.
All my php pages are named in this matter:
?home.php?page=createaccount
?home.php?page=etc.
?home.php?page=etc.
Some pages are named in this matter
?page.php
?anotherpage.php
Okay after loging in and redirecting to any same given format of address I can keep the session variable.
However, as soon as I change to ?page.php addrdess format the session variable that was created in my login script doesn't appear in user check anymore! Same thing happens when I post on forms that use
<? echo $PHP_SELF;?>
in my code. After submit the session variable (that is included at the top of the page) gets lost. Do I need to start the session again under each form post??? If so I think that's crazy
Why is it getting lost ?