Page 1 of 1

Login Problem

Posted: Mon Sep 17, 2007 10:38 am
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

Posted: Mon Sep 17, 2007 10:46 am
by aceconcepts
Can you post your code? Just the bits that matter.

Posted: Mon Sep 17, 2007 1:52 pm
by feyd
Yep, sounds like a caching problem.