View Single Post
Old 08-18-2006, 11:21 AM   #1 (permalink)
I like pie
Contributing Member
 
I like pie's Avatar
 
Join Date: 10-12-03
Location: California
Posts: 254
iTrader: 0 / 0%
Latest Blog:
None

I like pie is a jewel in the roughI like pie is a jewel in the roughI like pie is a jewel in the roughI like pie is a jewel in the roughI like pie is a jewel in the roughI like pie is a jewel in the roughI like pie is a jewel in the roughI like pie is a jewel in the rough
Send a message via ICQ to I like pie Send a message via AIM to I like pie Send a message via MSN to I like pie Send a message via Yahoo to I like pie
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?
__________________
Foohon Pie Productions
I like pie is offline   Reply With Quote
Sponsored Links
SEO Hosting by HostGator  Advertise Here  Buy Blog Links