By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,988 Members | 1,360 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,988 IT Pros & Developers. It's quick & easy.

session_start() fails

P: n/a
I get the following error message.

Warning: session_start(): open(/tmp\sess_9c7a721569fd097dc4dad85162984ebc,
O_RDWR) failed: No such file or directory (2) in
c:\inetpub\wwwroot\julseth\serenadehoa\default.php on line 3

What do I have wrong? This php page runs okay on my desktop. I am trying to
get my laptop able to run the same web page but, as you can see, it fails.

Thanks for the help....

Bruce
Jul 17 '05 #1
Share this Question
Share on Google+
4 Replies


P: n/a

<br*****@attglobal.net> wrote in message news:3f********@news1.prserv.net...
I get the following error message.

Warning: session_start(): open(/tmp\sess_9c7a721569fd097dc4dad85162984ebc,
O_RDWR) failed: No such file or directory (2) in
c:\inetpub\wwwroot\julseth\serenadehoa\default.php on line 3

What do I have wrong? This php page runs okay on my desktop. I am trying to get my laptop able to run the same web page but, as you can see, it fails.

Thanks for the help....

Bruce


This message looks familiar - didn't someone jusk ask this somewhere ?
Your /tmp looks suspicious. Unix type file path on a Windows box ?

Jul 17 '05 #2

P: n/a
Haven't heard anything on this problem!! Anyone out there in PHP land have a
suggestion on what's wrong here.

Thanks...

Bruce

<xyzzy> wrote in message news:28********************@comcast.com...

<br*****@attglobal.net> wrote in message news:3f********@news1.prserv.net...
I get the following error message.

Warning: session_start(): open(/tmp\sess_9c7a721569fd097dc4dad85162984ebc, O_RDWR) failed: No such file or directory (2) in
c:\inetpub\wwwroot\julseth\serenadehoa\default.php on line 3

What do I have wrong? This php page runs okay on my desktop. I am trying to
get my laptop able to run the same web page but, as you can see, it

fails.
Thanks for the help....

Bruce


This message looks familiar - didn't someone jusk ask this somewhere ?
Your /tmp looks suspicious. Unix type file path on a Windows box ?

Jul 17 '05 #3

P: n/a
"Bruce A. Julseth" wrote:

Haven't heard anything on this problem!! Anyone out there in PHP land have a
suggestion on what's wrong here.

Thanks...

Bruce

<xyzzy> wrote in message news:28********************@comcast.com...

<br*****@attglobal.net> wrote in message

news:3f********@news1.prserv.net...
I get the following error message.

Warning: session_start(): open(/tmp\sess_9c7a721569fd097dc4dad85162984ebc, O_RDWR) failed: No such file or directory (2) in
c:\inetpub\wwwroot\julseth\serenadehoa\default.php on line 3

What do I have wrong? This php page runs okay on my desktop. I am trying
to
get my laptop able to run the same web page but, as you can see, it

fails.
Thanks for the help....

Bruce


This message looks familiar - didn't someone jusk ask this somewhere ?
Your /tmp looks suspicious. Unix type file path on a Windows box ?


According to Google Groups you didn't address these 2 lines ^^

It appears PHP is trying to open a file to store the sessions using a *nix
filepath. If that's the case you'd have to change the session.save_path
variable in php.ini to a windows directory, I believe. See:

http://ca2.php.net/manual/en/ref.session.php

On that page you will see:
Note: Windows users have to change this variable in order to use PHP's session
functions. Make sure to specify a valid path, e.g.: c:/temp.

Regards,
Shawn
--
Shawn Wilson
sh***@glassgiant.com
http://www.glassgiant.com
Jul 17 '05 #4

P: n/a
Fixing the php.ini has corrected the problem. Thanks...

Bruce

"Shawn Wilson" <sh***@glassgiant.com> wrote in message
news:3F***************@glassgiant.com...
"Bruce A. Julseth" wrote:

Haven't heard anything on this problem!! Anyone out there in PHP land have a suggestion on what's wrong here.

Thanks...

Bruce

<xyzzy> wrote in message news:28********************@comcast.com...

<br*****@attglobal.net> wrote in message news:3f********@news1.prserv.net...
> I get the following error message.
>
> Warning: session_start():

open(/tmp\sess_9c7a721569fd097dc4dad85162984ebc,
> O_RDWR) failed: No such file or directory (2) in
> c:\inetpub\wwwroot\julseth\serenadehoa\default.php on line 3
>
> What do I have wrong? This php page runs okay on my desktop. I am

trying
to
> get my laptop able to run the same web page but, as you can see, it

fails.
>
> Thanks for the help....
>
> Bruce
>
>

This message looks familiar - didn't someone jusk ask this somewhere ?
Your /tmp looks suspicious. Unix type file path on a Windows box ?


According to Google Groups you didn't address these 2 lines ^^

It appears PHP is trying to open a file to store the sessions using a *nix
filepath. If that's the case you'd have to change the session.save_path
variable in php.ini to a windows directory, I believe. See:

http://ca2.php.net/manual/en/ref.session.php

On that page you will see:
Note: Windows users have to change this variable in order to use PHP's

session functions. Make sure to specify a valid path, e.g.: c:/temp.

Regards,
Shawn
--
Shawn Wilson
sh***@glassgiant.com
http://www.glassgiant.com

Jul 17 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.