cookie or session lost

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
cade
Forum Commoner
Posts: 55
Joined: Tue Jul 03, 2007 8:18 pm

cookie or session lost

Post by cade »

I used session or cookie for maintaining user preferences. But when I navigate to other directory, either up one level or go deeper level, I lost the cookie and session. How to avoid this?
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

Likely, the cookie parameters are a bit too specific.

session_set_cookie_params() may be of interest.
Post Reply