Sessions

From: Date: Sat, 16 Aug 2003 21:28:48 +0000
Subject: Sessions
Groups: php.general 
Request: Send a blank email to php-general+get-159806@lists.php.net to get a copy of this message
Hi!! I have some problem on my site. When I'm using this PHP script: <?php session_start(); session_register( "aUser", "aAccount" ); $aUser = "Cidnie"; $aAccount = "1016"; ?> <html> <head> <title>Getting Started With Sessions: Page 1</title> </head> <body> <?php print( "Current User: $aUser<br>" ); print( "Current Account: $aAccount<br>" ); ?> <br><br> <a href="listing2.phtml">Go to page 2</a> </body> </html> I'm getting this warning messages: Warning: session_start(): open(/tmp/sess_cbd07ca5b53347ca5003404053754bde, O_RDWR) failed: Permission denied (13) in /home2/pena/public_html/listing1.php on line 2 Warning: session_start(): Cannot send session cookie - headers already sent by (output started at /home2/pena/public_html/listing1.php:2) in /home2/pena/public_html/listing1.php on line 2 Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /home2/pena/public_html/listing1.php:2) in /home2/pena/public_html/listing1.php on line 2 Warning: Unknown(): open(/tmp/sess_cbd07ca5b53347ca5003404053754bde, O_RDWR) failed: Permission denied (13) in Unknown on line 0 Warning: Unknown(): Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/tmp) in Unknown on line 0 It looks like I don't have permission to write in /tmp/ directory. Can I change that permission? Greetings, Peda!!!

« previous php.general (#159806) next »