Session variable data

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

User avatar
RobertGonzalez
Site Administrator
Posts: 14293
Joined: Tue Sep 09, 2003 6:04 pm
Location: Fremont, CA, USA

Re: Session variable data

Post by RobertGonzalez »

Can you try what I suggest here and see what happens on your server?
kipp
Forum Commoner
Posts: 27
Joined: Fri Jan 09, 2009 1:25 pm

Re: Session variable data

Post by kipp »

I was able to get it to work by adding the following

session_save_path("/path/phpsessions");

Question is does this location have to be above root, etc...Can I set up a regular folder or is that a big security risk? Also, if I do so, what would the permissions for this folder have to be for the sessions to be written and read correctly.

Thanks.
User avatar
RobertGonzalez
Site Administrator
Posts: 14293
Joined: Tue Sep 09, 2003 6:04 pm
Location: Fremont, CA, USA

Re: Session variable data

Post by RobertGonzalez »

So you don't have permissions to write to /tmp?
kipp
Forum Commoner
Posts: 27
Joined: Fri Jan 09, 2009 1:25 pm

Re: Session variable data

Post by kipp »

client has their site hosted with att web hosting...
Post Reply