Jump to content
View in the app

A better way to browse. Learn more.

The Uniform Server Community

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Not saving sessions

Featured Replies

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...

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

  • Author

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...

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 :)

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...

Account

Navigation

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.