Re: Session Problem
| From: | datsclark | Date: | Fri, 16 Feb 2007 15:25:59 +0000 |
| Subject: | Re: Session Problem | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-248960@lists.php.net to get a copy of this message | ||
Also, make sure the session's are being saved properly. I had this same
problem when PHP wasn't able to write to the temp directory. You can set up
your own sessions dir with
session.save_path
in php.ini
""LoneWolf"" <ltempleton@wanisoft.com> wrote in message
news:E7.C1.40589.CF1D4D54@pb1.pair.com...
>I am having a problem where it appears that the session is not being saved
>properly.
>
> While on a page, I can start a session and set variables to it. however,
> when I go to the next page.. the session variables appear to have been
> cleared out.
>
> first page:
> session_start();
>
> $_SESSION["user_level"] = "test";
>
>
>
> second page:
>
> session_start();
>
> echo $_SESSION["user_level"] ;
>
>
>
> We just installed php on the 2003 server. Is there maybe a problem with
> the php.ini file that I need to fix?