justjames Posted January 2, 2008 Report Share Posted January 2, 2008 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... Quote Link to comment Share on other sites More sharing options...
Ric Posted January 2, 2008 Report Share Posted January 2, 2008 A quick test, I placed this code at the top of a php page: <?php// starts the sessionsession_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 Quote Link to comment Share on other sites More sharing options...
justjames Posted January 5, 2008 Author Report Share Posted January 5, 2008 I found the problem - a rogue .htaccess file that was sitting in my /www folder from another project I worked on recently. Deleted the .htaccess and it worked fine. My own fault, oops... Quote Link to comment Share on other sites More sharing options...
Ric Posted January 6, 2008 Report Share Posted January 6, 2008 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 bestRic Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.