simple session question? |
[eluser]anna16[/eluser]
Hi guys I just created a simple demonstration of session using CodeIgniter. Anyway here is the link below, http://coder9.com/ci/ztest.php/session/s...sion_view/ If you try to enter a username and email address. and press the submit button it's working fine but when you click the logout link the username and email data don't disappear. Unless you click it twice. Why is this? By the way below is the codes for my controller, Code: <?php THanks in advanced.
[eluser]LuckyFella73[/eluser]
I think the session data is still available untill the next page load. Try to make a redirect to the "session_form" page.
[eluser]LuckyFella73[/eluser]
Quote:Where did you learned that trick? XDhe he! Nearly all I know about cookies and sessions I learned from WanWizard. He did a lot informative posts about that. Nice your code works now! |
Welcome Guest, Not a member yet? Register Sign In |