i m using a open source cms (PHP)
when ever i try to logout. i get loggged out but the screen shows as if still logged in. when i refresh it gets directed to home page.

when i press back i get the history all the people logged in. how do i short this problem out.

is there any solution to this problem. mechanical refresh wont be good all time.

(meta refreshes the page in abrupt time like constant time when i might be doing an opeartion in half way)

fined your session which is controling the login user and unset it when logedout button is clicked

During the logout process (before new begins to load) add the following code:

$_SESSION=array();

That should flush the sessions data so the session will be empty after that point/line.

please follow the practice to mark the threads as solved, it helps others too :)

Are there any cookies that are authenticating the user?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.