[PHP] pls help with session

2003-01-13 Thread James Tan
Dear Sir/Madam, I've been coding session for quite sometime, but this is the first time i encounter such problem... index.php(login form) - login.php (verifies and set session userkey=1) - main.php (check session userkey) if check session userkey fail, gets redirected back to index.php in the

Re: [PHP] pls help with session

2003-01-13 Thread Jason k Larson
It looks to me like you are losing the session id. Try something along the lines of this for the redirect: header(location: main.php?PHPSESSID=.Session_Id()); This could/should be being pushed via cookies, but it appears as though it is not. The best way to troubleshoot is to print the before