RE: Session Problem

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Does your system have permission to write to the temp directory?

Put on error_reporting(E_ALL) and see if it throws an error. 

-----Original Message-----
From: LoneWolf [mailto:ltempleton@xxxxxxxxxxxx] 
Sent: Thursday, February 15, 2007 2:35 PM
To: php-general@xxxxxxxxxxxxx
Subject:  Session Problem

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?

--
PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:
http://www.php.net/unsub.php

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux