Re: [Q] session variables wouldn't keep contents.

From: Date: Wed, 14 Mar 2001 02:58:45 +0000
Subject: Re: [Q] session variables wouldn't keep contents.
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-43758@lists.php.net to get a copy of this message
SNIP > > YO> You must start session before output anything to browser, or you must use > YO> buffering to do this, > YO> or you must use URL mode for session. > YO> i.e. This code sends "<html><body>" before starting session > YO> and cookie header > YO> must be sent before if session is cookie mode. > > YO> I recommend to write session_start() before programmers do anything. > > I modified that way. But no effect. still not work correctly. > After reloading, session variables are emptied. ;( > SNIP Is the session data created? If you are using file or user session handler, you should be able to see file or record for the session. If you are using file session handler, what is directory permission for session data storage? Nobody need to have write permission usually. (You are using Apache on Linux, right?) Sounds like it is the problem to me. Regards, Yasuo Ohgaki

« previous php.general (#43758) next »