Page 1 of 1

Question about Sessions

Posted: Wed Apr 16, 2008 10:51 pm
by latoyale
My code is producing the following the errors:

Warning: session_start(): open(html/askslicky/inner/sessions/sess_ae6803a8d0a32eb491bcddd19881d656, O_RDWR) failed: No such file or directory (2) in /home/content/j/a/b/jaberkjaber/html/askslicky/inner/signup.php on line 3

Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /home/content/j/a/b/jaberkjaber/html/askslicky/inner/signup.php:3) in /home/content/j/a/b/jaberkjaber/html/askslicky/inner/signup.php on line 3

At the top of my form I have:
<?php
session_save_path("html/askslicky/inner/sessions");
session_start();

I'm thinking that the code "sessions_save_path" is supposed to save my sessions temporary in a folder that I set up on the server called "sessions." Is this correct?

Re: Question about Sessions

Posted: Thu Apr 17, 2008 1:06 am
by Christopher
The first error is because "html/askslicky/inner/sessions" does not exist. The second is because the error messages are sending output before the session_start(). You should use an absolute path rather than a relative one for session_save_path(). You may want to do the following to see what the path is currently set to:

Code: Select all

echo session_save_path();