Session Id problem...

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
kevin7
Forum Commoner
Posts: 96
Joined: Fri May 21, 2004 6:54 am

Session Id problem...

Post 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?
apple
Forum Newbie
Posts: 21
Joined: Wed Mar 03, 2004 12:50 am
Contact:

Jason talk about SESSION

Post by apple »

kevin7
Forum Commoner
Posts: 96
Joined: Fri May 21, 2004 6:54 am

Post 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...
d3ad1ysp0rk
Forum Donator
Posts: 1661
Joined: Mon Oct 20, 2003 8:31 pm
Location: Maine, USA

Post 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.
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

you could be running into a caching issue, which is often a pain to solve..

are you calling session_destroy()?
WelshApple
Forum Newbie
Posts: 9
Joined: Fri May 21, 2004 12:07 pm
Location: Wales-UK

Post by WelshApple »

You may want to try session_unregister().
Post Reply