
July 14th, 2005, 09:45 PM
|
 |
Contributing User
|
|
Join Date: Mar 2005
Location: Sacramento, CA
Posts: 264
 
Time spent in forums: 5 Days 7 h 55 m 15 sec
Reputation Power: 4
|
|
It sounds like it has something to do with your session save path. Do you have anything in the code that looks like this:
Code:
session_save_path('/home/path/to/session/folder');
session_start();
If so you can start trouble shooting by placing this script into the tmp folder that you want to store your sessions in.
PHP Code:
<?PHP
echo dirname($_SERVER["PATH_TRANSLATED"]);
?>
Copy that code into a file named something like "test.php" and upload it into the tmp folder. Then use your browser to visit that file. It will show the path you need to put in your session_save_path. BTW, this is known as the "full path" to your file, it is the path that you take through the Linux directory structure to reach your file. You don't use the URL path to the file. Therefore, don't do something like this session_save_path('http://www.domain.com/home/path/to/session/folder')
Oh yeah, make sure the tmp folder has write permissions, if it doesn't then your script won't be able to write the session variables to the tmp folder. If you use the FileZilla FTP client you can do it through that, if you use Dreamweaver there is also an extension you can download to change the file permissions. Or, if Yahoo gives you shell access (?) you can do it on the shell command line with "chmod 777 /home/path/to/session/folder"
|