Page 1 of 1

Session

Posted: Fri Jun 23, 2006 10:34 pm
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...

Posted: Fri Jun 23, 2006 10:49 pm
by feyd
hmmmm.. are you calling session_start() on each page where you want session data?

Posted: Sun Jun 25, 2006 9:21 am
by trock74
No I was not calling session_start(). Thanks...