Login 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
Genxcop
Forum Newbie
Posts: 1
Joined: Mon Sep 17, 2007 10:35 am

Login Problem

Post by Genxcop »

Hi All,

I am currently using sessions for my login and logouts. I have a default page for login and a protected page. When I login, the session will save the username as a session variable and redirect to the protected page which has a logout link. The logout link destroys the session and redirects back to the default page.

Sounds simply but my problem is when I logout, the default page shows the status that I am still logged in. I have to refresh the page in order to get the right results (ie, i hide the login panel when I am logged in).

I believe it's something to do with caching but it may not be... Any ideas?

Thanks for your time

GenX
User avatar
aceconcepts
DevNet Resident
Posts: 1424
Joined: Mon Feb 06, 2006 11:26 am
Location: London

Post by aceconcepts »

Can you post your code? Just the bits that matter.
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

Yep, sounds like a caching problem.
Post Reply