Welcome Guest, Not a member yet? Register   Sign In
Session problem in logout functionality
#1

[eluser]Vaibhav132[/eluser]
Hey i am working on Logout functionality ..

I have two headers for my website.
1)When user is not logged in i use "header1"
2)When user is logged in i use "header2"

When user logged in ,I load header2.
In header2 i have "Logout" link
where i call the controller function to to destroy the SESSION
and redirect to the websites main page and load header1.

But when i redirect,I can still see header2.
I have to refresh the main page to see the header1.

Is it, coz the session is not destroyed or anyother problem.
need some suggestions to solve this issue.
#2

[eluser]InsiteFX[/eluser]
Code:
redirect('to', 'refresh');




Theme © iAndrew 2016 - Forum software by © MyBB