![]() |
Logout problem - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: Logout problem (/showthread.php?tid=33179) |
Logout problem - El Forum - 08-18-2010 [eluser]Gowrisankar[/eluser] Hi... When i am logout the page backspace is allow to back. I want to disable backspace. for example when you sign-out gmail that won't allow back. i need that way to log-out. I hope anyone help in this forum..... This is my log-out function coding... function logout() { if($this->session->userdata('uid')!='') { $this->session->session_destroy(); redirect('home','refresh'); } else { $this->session->session_destroy(); redirect('home','refresh'); } } Logout problem - El Forum - 08-18-2010 [eluser]Gowrisankar[/eluser] Hi... When i am logout the page backspace is allow to back. I want to disable backspace. for example when you sign-out gmail that won't allow back. i need that way to log-out. I hope anyone help in this forum..... This is my log-out function coding... function logout() { if($this->session->userdata('uid')!='') { $this->session->sess_destroy(); redirect('home','refresh'); } else { $this->session->sess_destroy(); redirect('home','refresh'); } } Logout problem - El Forum - 08-18-2010 [eluser]Gowrisankar[/eluser] Hi... When i am logout the page backspace is allow to back. I want to disable backspace. for example when you sign-out gmail that won't allow back. i need that way to log-out. I hope anyone help in this forum..... This is my log-out function coding... function logout() { if($this->session->userdata('uid')!='') { $this->session->sess_destroy(); redirect('home','refresh'); } else { $this->session->sess_destroy(); redirect('home','refresh'); } } Logout problem - El Forum - 08-18-2010 [eluser]Deathcode[/eluser] Try this code.... Code: function __construct(){ but you have to create session/cookies that saved the value of "is_logged_in" on your login controller and destroy it session/cookies when you logout. Logout problem - El Forum - 08-18-2010 [eluser]minerbog[/eluser] Please only post in one place. Preferably the right place... This forum is for bug reports not problems |