PDA

View Full Version : login redirect problem


Roost3r
06-13-2003, 03:40 AM
Hi,
I have a login, once users are logged in there is a logout button. When they click that it goes to another php page that destroys the cookies, then i want to redirect to the previous page... eveyrhig i tried doesnt work... well the cookie is detroyed but going to the previous page it still says "you are still logged in" from like the cache... how can i redirect to the previous page by reloading the page, not viewing the cache....

i tried javasccript
history.go(-1) etc

if i could find out the previous page in pgp then i could use javascript liek this

location.href= "<?php echo $prevPage; ?>"

but i have no idea how to get the previous page

also... is there a way to find out what he whjole query string is? if so then i may be able to do it that way

tia

Spookster
06-13-2003, 04:43 AM
Are you using sessions or client side cookies?

Roost3r
06-13-2003, 05:29 AM
I'm using client side cookies to store the username and encrypted password... i am using sessions on my site also, just not for the user information