Page 1 of 1
Session Id problem...
Posted: Fri May 21, 2004 6:54 am
by kevin7
i hving a problem... i got my session id work!...
for the logoff, i just set the
$_SESSION['username'] = "";
$_SESSION['password'] = "";
but, when i click BACK button in the browser, it still display logged-in...
how can i make the page expire? any example?
Jason talk about SESSION
Posted: Fri May 21, 2004 6:58 am
by apple
Posted: Fri May 21, 2004 8:38 am
by kevin7
i seen this artical b4... but my problem not solve yet...
maybe i'm not understand...
can anyone tell me how to make it?
after i logged off... how to make the page become expire if i hit back...
(just like the phpmyadmin, whenver i hit back, there came out a page that said page've expired)
tq...
Posted: Fri May 21, 2004 11:57 am
by d3ad1ysp0rk
When you click back you're most likely viewing a cached page, but as long as you have a user authentication function for each page, it should disallow anything that requires being logged in. ie, you click "delete item", and that page would tell you that you are required to be logged in.
Posted: Fri May 21, 2004 11:58 am
by feyd
you could be running into a caching issue, which is often a pain to solve..
are you calling session_destroy()?
Posted: Fri May 21, 2004 12:07 pm
by WelshApple
You may want to try session_unregister().