note 10482 deleted from ref.session by sander

From: Date: Sun, 07 Apr 2002 11:35:56 +0000
Subject: note 10482 deleted from ref.session by sander
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-28851@lists.php.net to get a copy of this message
This is out to all the people trying to get sessions to work at all... If you are getting error messages here are two things that you have to do: 1. Make your session_start() the first function in your code, even before the <html> tag. 2. In your php.ini file under the header [session] there are two things that have to be filled out correctly: session.save_handler and session.save_path examples of the values are: session.save_handler = files session.save_path = /tmp For this example, you are using apache, make sure theses dir's exist: c:\apache\htdocs\files c:\apache\temp And my final bit of advice is read the WebMonkey tutorial on Sessions, avaliable at http://hotwired.lycos.com/webmonkey/00/05/index2a.html?tw=programming -Peter Feiner

« previous php.notes (#28851) next »