RE: [PHP] session troubles

From: Date: Wed, 08 May 2002 05:48:47 +0000
Subject: RE: [PHP] session troubles
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-96521@lists.php.net to get a copy of this message
If you made the change to php.ini to save it to c:\winnt\temp, then it hasn't taken affect. Whatever user Apache/PHP is running as needs to have write permission to the c:\winnt\temp directory, too. ---John Holmes... > -----Original Message----- > From: Kirk Babb [mailto:kbcd@worldnet.att.net] > Sent: Tuesday, May 07, 2002 7:20 PM > To: php-general@lists.php.net > Subject: [PHP] session troubles > > Hi, > > I have received the following error using PHP 4.2.0 with Apache 1.3.24 on > W2k: > > Warning: open(/tmp\sess_04521803c0d52b11a15affab18ed36a7, O_RDWR) failed: > No > such file or directory (2) in c:\program files\apache > group\apache\htdocs\news_authorize.php on line 2 > > and I realize that says the tmp dir for the sessions data is not there, > BUT > I have previously set my php.ini line dealing with this to: > > ; Handler used to store/retrieve data. > session.save_handler = files > > ; Argument passed to save_handler. In the case of files, this is the path > ; where data files are stored. Note: Windows users have to change this > ; variable in order to use PHP's session functions. > session.save_path = C:\WINNT\TEMP > (and there is a file named sessions.text in that dir) > > just as it mentioned to do in the manual comments on php.net. What have I > missed here? The code from the offending page: > <?php > session_start(); > $username = $_POST['username']; > $password = $_POST['password']; > $password2 = $_POST['password2']; > $loginForm = $_POST['loginForm']; > session_register(username, password); > > Am I misusing session_start()? Thanks for any help or suggestions. > > Kirk > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php

« previous php.general (#96521) next »