unsolved session error
Posted by: ferellie (---.ipt.aol.com)
Date: March 14, 2006 10:28AM

I get this error when testing locally.
I am not sure which module is missing or how to go about fixing this.
Any help would really be appreciated.
PS have checked previous posts too.
Thank you,
Peter

Warning: session_start() [function.session-start]: open(../tmp\sess_e082fdd637a2a399e21fe78729e6f620, O_RDWR) failed: No such file or directory (2) in C:\wamp\www\doodlepages\login\include\session.php on line 46



Post Edited (03-14-06 10:37)

Options: ReplyQuote
Re: unsolved session error
Posted by: CyberSpatium (---.hsd1.or.comcast.net)
Date: March 14, 2006 01:44PM

if had just looked at previous posts about sessions you would have easy got an answer to your question. Look at previous posts and you will find your answer.

[forum.wampserver.com]

Options: ReplyQuote
Re: unsolved session error
Posted by: ferellie (---.ipt.aol.com)
Date: March 14, 2006 02:03PM

I found the line and changed it. Saved it, then restarted ALL services. I'm sorry to ask again but it still doesn't work, same error.

Peter

session.save_path = C:\WINDOWS\Temp
;
; where N is an integer. Instead of storing all the session files in
; /path, what this will do is use subdirectories N-levels deep, and
; store the session data in those directories. This is useful if you
; or your OS have problems with lots of files in one directory, and is
; a more efficient layout for servers that handle lots of sessions.
;
; NOTE 1: PHP will not create this directory structure automatically.
; You can use the script in the ext/session dir for that purpose.
; NOTE 2: See the section on garbage collection below if you choose to
; use subdirectories for session storage
;
; The file storage module creates files using mode 600 by default.
; You can change that by using
;
session.save_path = C:\WINDOWS\Temp

Options: ReplyQuote
Re: unsolved session error
Posted by: CyberSpatium (---.hsd1.or.comcast.net)
Date: March 15, 2006 04:54AM

remove the top session.save_path from your file above

;
; where N is an integer. Instead of storing all the session files in
; /path, what this will do is use subdirectories N-levels deep, and
; store the session data in those directories. This is useful if you
; or your OS have problems with lots of files in one directory, and is
; a more efficient layout for servers that handle lots of sessions.
;
; NOTE 1: PHP will not create this directory structure automatically.
; You can use the script in the ext/session dir for that purpose.
; NOTE 2: See the section on garbage collection below if you choose to
; use subdirectories for session storage
;
; The file storage module creates files using mode 600 by default.
; You can change that by using
;
session.save_path = C:\WINDOWS\Temp


Also, if your windows directory is differnt then WINDOWS like mine, change it to what yours is. Also, if your windows directiry is on a different drive, make change this setting to that.

Options: ReplyQuote
Re: unsolved session error
Posted by: ferellie (---.ipt.aol.com)
Date: March 15, 2006 09:45AM

Hello,
I have done the changes above very carefully, the path to the Temp directory is correct, it still sends out the error below. Could it be a module missing? I'm fishing, really stuck here, sorry to be a pain again.

Peter

Warning: session_start() [function.session-start]: open(../tmp\sess_83aa216c3983ba6bc68bb97a6b35c00c, O_RDWR) failed: No such file or directory (2) in C:\wamp\www\doodlepages\login\include\session.php on line 46

Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at C:\wamp\www\doodlepages\login\include\session.php:46) in C:\wamp\www\doodlepages\login\include\session.php on line 46

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at C:\wamp\www\doodlepages\login\include\session.php:46) in C:\wamp\www\doodlepages\login\include\session.php on line 46

Options: ReplyQuote
Re: unsolved session error
Posted by: CyberSpatium (---.hsd1.or.comcast.net)
Date: March 15, 2006 08:09PM

you have not changed your session.save_path setting because your error shows your session.save_path is ../tmp

Warning: session_start() [function.session-start]: open(../tmp\sess_83aa216c3983ba6bc68bb97a6b35c00c, O_RDWR) failed:

The open(../tmp part of the error message tells me this.

There are two possible reasons your settings have not taken effect.

1.> Make sure you restart apache after you edit your php.ini file.
2.> You must not be editing the right php ini file. Create a file called test.php in your www directory with this code:

<?php

phpinfo();

?>

Save the file, and run it. Look for the setting Configuration File (php.ini) Path. It is about 5-6 lines down from the top of the page. This setting tells you the location of the php.ini file being used. Open up that file, and change the session.save_path setting there, save the file, restart apache and it should work now.

Options: ReplyQuote
Re: unsolved session error
Posted by: chuckless (---.tpgi.com.au)
Date: March 30, 2006 09:36AM

The answer is to check the website config files. (or in the database)
Somewhere it is setting it's own session path which is screwing up your system.
if you have dreamweaver you can easily search through all the files for a reference to 'session_save_path ( '../tmp' )' or just 'session_save_path'

Changing it in php.ini will have no effect. (but you still should change it to 'session.save_path = C:\WINDOWS\Temp' or some other absolute temp directory.)CyberSpatium wrote:

Options: ReplyQuote
Re: unsolved session error
Posted by: CyberSpatium (---.hsd1.or.comcast.net)
Date: March 30, 2006 10:56AM

> Changing it in php.ini will have no effect.

That is absoluley wrong, php.ini is the only place you can change the session safe path setting.

Options: ReplyQuote
Re: unsolved session error
Posted by: chuckless (---.tpgi.com.au)
Date: April 01, 2006 10:09AM

I actually meant to say 'Changing it in php.ini will have no effect IF it is set in the scripts'.

The command

'session_save_path('../tmp');'

WILL change your save session path to '../tmp' REGARDLESS of what is set in php.ini.

Options: ReplyQuote


Sorry, only registered users may post in this forum.