PDA

View Full Version : header redirect logout page - cause of incomplete header


vbl
08-30-2006, 08:33 PM
Hi,

i moved this <!-- login form --> etc. to the header as well es the navbar stuff
alltogether this works fine.

but when i logout, i am correctly logged out, but the header + navbar is still the old one and shows my name as well as the links for logged in users... - on the logout page.

a solution is to redirect the logout page after immediately again...

to load this page two times fixes the bug: login.php?do=logout&logouthash=XX

any idea which code modification is usefull? or how to?

Ntfu2
08-30-2006, 10:32 PM
you'll have to refresh the page immediately after logging out to make the login box reappear again.

I think thats what you're shooting for

vbl
08-30-2006, 10:55 PM
you'll have to refresh the page immediately after logging out to make the login box reappear again.

I think thats what you're shooting for

exactly, the best and quickest way would be with header();
but where to add which code? - any idea?

vbl
09-01-2006, 09:49 AM
ok if nobody has an idea.... how to reload/redirect the logout page

how to not show the logout page - and directly redirect to the main page?