session_save_path

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
riley
Forum Commoner
Posts: 45
Joined: Thu May 02, 2002 6:31 pm

session_save_path

Post by riley »

I have a problem on a windows 2000 iis5 php installation.

I have to set the session_save_path for each page. For some reason it is not reading the ini correctly. I have the same path in the ini and hard coded in the page. the hard coded on works.

works

Code: Select all

session_save_path("d:/Webroot/SessionData");
echo session_save_path();
ini in the winnt directory (only ini for php)

Code: Select all

; variable in order to use PHP's session functions.
session.save_path = D:/Webroot/SessionData
any ideas
User avatar
riley
Forum Commoner
Posts: 45
Joined: Thu May 02, 2002 6:31 pm

Never mind

Post by riley »

Sorry gang I needed to restart the machince for the changes to take place and I had not.
User avatar
feiticeir0
Forum Newbie
Posts: 8
Joined: Tue Nov 05, 2002 1:33 pm
Location: Castelo Branco, Portugal

Post by feiticeir0 »

You need to edit your php.ini file and search for session.save_path = "directory"

where "directory" is the directory (normaly, for development only, in windows, i use c:\windows\temp) where php will save the sessions files !!


regards,

Bruno Santos
Post Reply