Session

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
trock74
Forum Newbie
Posts: 6
Joined: Mon Jun 12, 2006 10:05 pm

Session

Post by trock74 »

I designed a pager in php were user can view all products on products page and click next to view the next list. My problem is I keep losing my session variable once I click next. What I'm I doing wrong? I call page /viewprod.php but once i click next it changes from /?tester=1&year=$nyear. After the user login successfully the session is created to viewprod.php but once next is click i go back to log in. My session variable is lost. Please help...
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

hmmmm.. are you calling session_start() on each page where you want session data?
trock74
Forum Newbie
Posts: 6
Joined: Mon Jun 12, 2006 10:05 pm

Post by trock74 »

No I was not calling session_start(). Thanks...
Post Reply