Welcome Guest, Not a member yet? Register   Sign In
Session class doesn't work online
#1

[eluser]Omaplie[/eluser]
Hi,

First, I would like to thank you for all your help with my other topics.
Now, I have a trouble with Session class when I put it online.
When I login to the website, the session is create and everything works but
when I logout, the session doesn't destroy. I don't know why because in local
that works fine.

My code to destroy the session :
Code:
<?php
    function logout()
    {
        $this->session->unset_userdata('login');
        $this->session->unset_userdata('logged');
        $this->session->sess_destroy();
        redirect(site_url());
    }
?>

I though to use native session but I need session class because I have a minichat
on my website and I need to get people online thanks to the session.

Someone have an idea of my trouble ?

Thank you very much.
#2

[eluser]sanir[/eluser]
please read this url, it will help you.

http://stackoverflow.com/questions/90190...oing-wrong


Thanks,
Nasir Ranta
#3

[eluser]Omaplie[/eluser]
Thank you for your help.

I have already seen and tried this tips but unfortunately it didn't work.

Thank you a lot.
#4

[eluser]Omaplie[/eluser]
I read the topic that you gave me again.
It's not the same trouble than me.
I think that the session is really deleted but it's
when he push back in the browser, because of the cache, he can
see him logged.

My trouble is not the same because the session doesn't delete.
I really don't know why because in local that works fine.

Any idea ?

Thank you very much




Theme © iAndrew 2016 - Forum software by © MyBB