![]() |
Login form and back button - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21) +--- Thread: Login form and back button (/showthread.php?tid=37371) |
Login form and back button - El Forum - 01-07-2011 [eluser]Mimi kesini[/eluser] need help... :'( I've tried using the sessions class, add the session data in the database and I added a header in the view but the results still, I can access the previous page by pressing the back button. my controller Code: $data = array( my view header Code: <meta http-equiv="content-type" content="text/html; charset=iso-8859-1" /> my logout function Code: function logout() I use mozilla as a browser Thank you... ![]() Login form and back button - El Forum - 01-07-2011 [eluser]gyo[/eluser] This is a common issue which has nothing to do with CodeIgniter or the Sessions class. Basically when you hit the back button on the browser, it gives you the cached page without re-asking it to the server. It's supposed to work like that. Try to search for "back button" here in the forum to get more info about it. Also try loggin to whatever website (amazon, ebay, facebook) and you'll notice the same "issue". Login form and back button - El Forum - 01-07-2011 [eluser]Nick_MyShuitings[/eluser] Also remember, that even though they can see the page, they will not be able to interact with it in any way. One thought, its something that Facebook does to make life miserable for crawler bots, but you can load important parts of the page with AJAX, using a lazyload that triggers on page ready. the Back button cache usually only covers what is initially downloaded and as such, if your ajax php side is well written, they won't get any content. Login form and back button - El Forum - 01-07-2011 [eluser]Nick_MyShuitings[/eluser] Check out this thread and wanwizards comments : ie use headers instead of metas http://ellislab.com/forums/viewthread/155733/ |