POST & REFERER problem

From: Date: Thu, 01 Nov 2001 16:30:59 +0000
Subject: POST & REFERER problem
Groups: php.windows 
Request: Send a blank email to php-windows+get-10152@lists.php.net to get a copy of this message
I need some guidance on the following problem. I have a setup where the usage flow is (kinda) like this: Page A ----\ /----\ | ---- Login -+-- [done login] Page B ----/ | \ \ (back to calling page) / -------------------------------- Nice ascii art, heh? Description: I have a working session / authorization system which i want to add a feature to. A user who (either from page A or B) wants to login. The user (if not logged in allready) gets presented a loginscreen (login). To login the user POST the login & pwd to the login page (to itself) for validation. If the login is successful i want to present the user with a link back to the initial page (A or B). How can i do this? All i get from $HTTP_REFERER after the login page is - the login page. I know that i must save the reference as the login page gets called the first time, but i haven't managed to get something to work yet. Any helpful soul out there? -- Michel Laine

« previous php.windows (#10152) next »