session variable is not forwarding between pages

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

stanfish
Forum Newbie
Posts: 9
Joined: Wed Apr 14, 2004 10:10 am

Post by stanfish »

but the file "files" is located in the "temp" folder. Do I need to put it outside the folder?
User avatar
markl999
DevNet Resident
Posts: 1972
Joined: Thu Oct 16, 2003 5:49 pm
Location: Manchester (UK)

Post by markl999 »

Nope, the session.save_handler doesn't refer to a directory/folder, it refers to the method to use, you want to use files to store them, not /temp/files ;)
stanfish
Forum Newbie
Posts: 9
Joined: Wed Apr 14, 2004 10:10 am

Post by stanfish »

Should I restart the computer after changing the php.ini? I noticed that php.ini is located in my windows folder and Apache folder.
User avatar
markl999
DevNet Resident
Posts: 1972
Joined: Thu Oct 16, 2003 5:49 pm
Location: Manchester (UK)

Post by markl999 »

Yep, edit the php.ini in your windows folder and make the change there, also, as you're on windows you'll need to change :
session.save_path = /temp
to
session.save_path = c:\temp
(or some other temporary directory that exists)
Then restart apache.
stanfish
Forum Newbie
Posts: 9
Joined: Wed Apr 14, 2004 10:10 am

Post by stanfish »

Thank you very much!!!

It works pretty good now..

Thanks again!
Post Reply