CodeIgniter Forums
CI 1.7.2 Session destroy problem at Firefox 7.0.1 - 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: CI 1.7.2 Session destroy problem at Firefox 7.0.1 (/showthread.php?tid=45772)



CI 1.7.2 Session destroy problem at Firefox 7.0.1 - El Forum - 10-05-2011

[eluser]Unknown[/eluser]
Hello,

The problem is with the sess_destroy().
On Firefox 4.0 it worked fine, but with the new version of Firefox 7.0.1 and IE 9 it isn't destroing the session.

I have a function in class 'logowanie' that logout a user:

Code:
function wyloguj() {
        if ($this->session->userdata('logged_in') == FALSE) {
            redirect('logowanie/zaloguj', 'refresh');
        } else {
            $this->session->sess_destroy();
            redirect('logowanie/zaloguj', 'location', 301);
        }
    }

It shuold destroy the users session but it doesn't and redirect to login function 'logowanie/zaloguj'.

I'm using CodeIgniter 1.7.2, XAMPP 1.7.7, PHP: 5.3.8
On Google Chrome 14.0.835.202 everything works fine.

I noticed when I deleted the logout function 'wyloguj' from 'logowanie' class on Firefox 7.0.1 it is still redirecting me to login function 'logowanie/zaloguj'.:gulp:
On Chrome it popup the 404 Page Not Found Error.

I hope that is understandable ;-)
Best Regards CiuchY