Welcome Guest, Not a member yet? Register   Sign In
Telling the session class to go to sleep
#7

[eluser]helmutbjorg[/eluser]
You probably can't do it without removing the session from the autoload config... You could create a custom controller like so that you use for all your other pages.

Code:
// application/libraries/MY_Controller.php
class MY_Controller extends Controller {

    function MY_Controller {
        parent::Controller();
        $this->load->library('session');
        // More crap here if you want...
    }

}

// Then in your other controllers you extend this one
class Other extends MY_Controller {

    function Other() {
        parent::MY_Controller();
        // Now your session is available here...
    }

}


// And in your common one you skip the MY_Controller extend directly from default
class Common extends Controller {

    function Common() {
        parent::Controller();
        // No session!
    }

}


Messages In This Thread
Telling the session class to go to sleep - by El Forum - 12-09-2009, 04:02 AM
Telling the session class to go to sleep - by El Forum - 12-09-2009, 01:17 PM
Telling the session class to go to sleep - by El Forum - 12-09-2009, 01:40 PM
Telling the session class to go to sleep - by El Forum - 12-09-2009, 02:39 PM
Telling the session class to go to sleep - by El Forum - 12-09-2009, 03:12 PM
Telling the session class to go to sleep - by El Forum - 12-09-2009, 03:17 PM
Telling the session class to go to sleep - by El Forum - 12-09-2009, 03:20 PM
Telling the session class to go to sleep - by El Forum - 12-09-2009, 03:27 PM
Telling the session class to go to sleep - by El Forum - 12-09-2009, 04:25 PM
Telling the session class to go to sleep - by El Forum - 12-11-2009, 03:39 PM



Theme © iAndrew 2016 - Forum software by © MyBB