Welcome Guest, Not a member yet? Register   Sign In
Problem with CI4 session
#2

(This post was last modified: 12-19-2019, 09:16 AM by InsiteFX.)

I load my session in the BaseController like below and it works just fine.

Add a:

PHP Code:
use Config\Services


PHP Code:
// Ensure that the session is started and running
if (session_status() == PHP_SESSION_NONE)
{
    $this->session Services::session();


By the way I use the session files driver and save my sessions to the writable folder.
What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )
Reply


Messages In This Thread
Problem with CI4 session - by webdevron - 12-15-2019, 12:25 AM
RE: Problem with CI4 session - by InsiteFX - 12-15-2019, 05:38 AM
RE: Problem with CI4 session - by webdevron - 12-15-2019, 02:00 PM
RE: Problem with CI4 session - by InsiteFX - 12-16-2019, 06:20 AM
RE: Problem with CI4 session - by InsiteFX - 12-16-2019, 09:17 AM
RE: Problem with CI4 session - by asepma - 04-24-2020, 04:19 AM
RE: Problem with CI4 session - by InsiteFX - 04-24-2020, 08:17 AM



Theme © iAndrew 2016 - Forum software by © MyBB