Jump to content
The Uniform Server Community

Not saving sessions


justjames
 Share

Recommended Posts

When I try to do a session_start() in php I get the error:

 

Warning: session_start() [function.session-start]: open(/home/s/serve/tmp/\sess_t1gtuh8s36jkqcc9ic6p6suse0, O_RDWR) failed: No such file or directory

 

even though in php.ini the save path for sessions is clearly set to:

 

session.save_path = "/tmp/"

 

I've no idea where the /home/s/serve path thing is coming from in the first error, I've searched all the files for that string and can't seem to locate it. I haven't changed anything in my php.ini that I know of.

 

I'm using Uniform Server [3.5-Apollo]

 

thanks for your help...

Link to comment
Share on other sites

A quick test, I placed this code at the top of a php page:

 

<?php

// starts the session

session_start();

 

// sets variable in the session

$_SESSION['fred']='test';

 

?>

 

No problems when run on XP Home, I was wondering if it’s a Vista issue.

 

Like you I have no idea where that strange path /home/s/serve/tmp/ comes from. :)

 

Ric

Link to comment
Share on other sites

I have no problem with “oops” been down that path many times myself.

Its nice to see what resolved the problem may help others if they experience a similar problem so thanks for the feedback.

 

All the best

Ric :)

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...