|
session problem with redirect
A friend of mine is making a game and has it set up like one of mine (which works) but he's stuck on a problem with sessions. Our code is almost identical, but using redirect causes his problems and not mine.
Anyway, we've got 3 files. login.php, account.php, and _include_session.php
The way it's supposed to work is that login.php starts a session with the right data upon successful login, sends the user to account.php, which then includes session.php (as every page will) to check the access levels of the user among other things.
We've narrowed it down to the redirect in login.php:
<META HTTP-EQUIV="Refresh" CONTENT="0; URL=account.php">
The data is there right before that line, but when we try retreiving it in account.php we get nothing. We've tried scrapping the include and starting the session in the file itself, and still nothing. My guess is that he/we shouldn't be redirecting in that way but it's been working fine for me on many things I've done.
Any ideas on what the heck is going on?
|