Hi,
I have this problem please help
I have Logout link on my front page for the same i have the following code in my Page-front.tpl and page.tpl
if(!isset($_SESSION['userid'])){

print "Welcome ".$user->name."! " ; print l('Log out', 'http://sciotdev.radiantexp.com/logout', array('class' => 'logout-link'), 'destination=http://sciotdev.radiantexp.com/logout', NULL, TRUE);

} else{

}
What i see is login and register links works fine but logout doesnt seem to be working i have tried many options but nothing fixes the problem when i click on logout link for the first click it doesnt logout and for the second click it displays the access denied screen.

Thanks in advance for your suggestions !

Comments

swarna.p’s picture

Does any one has an answer for this?

swarna.p’s picture

i could solve this issue by changing the code to header("Cache-Control: no-store, no-cache, must-revalidate"); bootstrap.inc
thanks for the resolution i found in http://drupal.org/node/197786