note 10482 added to Session handling functions

From: Date: Sat, 06 Jan 2001 06:02:12 +0000
Subject: note 10482 added to Session handling functions
Groups: php.notes 
Request: Send a blank email to php-notes+get-9428@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 http://www.php.net/manual/ref.session.php

« previous php.notes (#9428) next »