Welcome Guest, Not a member yet? Register   Sign In
Global session check and re-direct
#2

In your BaseController initController(...)

PHP Code:
        // Ensure that the session is started and running
        if (session_status() === PHP_SESSION_NONE)
        {
            // if session status is none then start the session
            $this->session Services::session();
        
What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )
Reply


Messages In This Thread
Global session check and re-direct - by joho - 04-04-2024, 01:49 AM
RE: Global session check and re-direct - by InsiteFX - 04-04-2024, 04:00 AM
RE: Global session check and re-direct - by joho - 04-04-2024, 06:03 AM



Theme © iAndrew 2016 - Forum software by © MyBB