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
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