Jump to content

linux server tries to store session files on c:/wampserver


facarroll

Recommended Posts

Since my remote hosting server was recently migrated I am receiving an error message generally which goes like this


Warning: session_start() [function.session-start]: open(c:/wampserver/tmp/session_file_name, O_RDWR) failed: No such file or directory (2) in /home/safetyte/public_html/portal/woodwork_sub/ws_member_profile.php on line 2

 

Lines 1 and 2 are


<?php
session_start();

 

This message is coming from the remote server but refers to a folder on my local computer (c:/wampserver/tmp) which is in fact the correct path for saving on the testing server. You can see this message is displayed on any computer (yours) by linking to http://www.safetytestingonline.com/portal/woodwork_sub/ws_member_profile.php .

Any help would be appreciated. My webhost isn't doing much for me.

Somewhere either in your code or in your php.ini file you have configured session.save_path to point to C:/wampserver/tmp. You need to change that configuration to point to an appropriate directory on your remote host.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.