Re: Sessions Problem !!
| From: | Chris Martin | Date: | Fri, 06 Aug 2004 20:55:44 +0000 |
| Subject: | Re: Sessions Problem !! | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-193042@lists.php.net to get a copy of this message | ||
Dre wrote:
the exact error messages are ============================================================================ ========================== Warning: session_start(): open(/tmp\sess_000c30790862f64268e755546b6fcbb2, O_RDWR) failed: No such file or directory (2) in C:\Program Files\Apache Group\Apache2\htdocs\maillist\maillist\admin.php on line 1First, if you want to store session data on win32, you'll need to change the session.savepath in your php.ini. open it and search for: session.save_path and change it from session.save_path = /tmp to session.save_path = C:\WINDOWS\Temp (Or wherever your temp folder is if you're not on XP)
Warning: session_start(): Cannot send session cookie - headers already sent by (output started at C:\Program Files\Apache Group\Apache2\htdocs\maillist\maillist\admin.php:1) in C:\Program Files\Apache Group\Apache2\htdocs\maillist\maillist\admin.php on line 1This error tells you that the output was started at line 1 of your admin.php file. (maybe a blank line at the top of the script?) As Miles suggested: "You have to call session_start() before any output to the page, even a single space." -- Chris Martin Web Developer Open Source & Web Standards Advocate http://www.chriscodes.com/