Welcome Guest, Not a member yet? Register   Sign In
Session not being destroyed upon the browser closure
#4

[eluser]Refringe[/eluser]
@WanWizard: Could you please elaborate on how to create your "MY_Session" library?

I've created the file:
application/libraries/MY_Session.php

MY_Session.php contents:
Code:
class MY_Session extends CI_Session {
    function MY_Session()
    {
        parent::CI_Session();
        $this->sess_expiration = 0;
    }
}

Then to load MY_Session I add it to the autoload array in:
application/config/config.php

Code:
$autoload['libraries'] = array('session', 'my_session');

Is this correct?


Messages In This Thread
Session not being destroyed upon the browser closure - by El Forum - 10-05-2009, 11:36 PM
Session not being destroyed upon the browser closure - by El Forum - 10-06-2009, 01:09 AM
Session not being destroyed upon the browser closure - by El Forum - 10-06-2009, 04:27 AM
Session not being destroyed upon the browser closure - by El Forum - 10-07-2009, 08:39 AM
Session not being destroyed upon the browser closure - by El Forum - 10-07-2009, 08:58 AM
Session not being destroyed upon the browser closure - by El Forum - 10-07-2009, 10:46 AM
Session not being destroyed upon the browser closure - by El Forum - 10-07-2009, 10:51 AM



Theme © iAndrew 2016 - Forum software by © MyBB