Welcome Guest, Not a member yet? Register   Sign In
session_id() returns blank
#1

Hello, on ci4 and using MAMP free version.

$id = session_id();

echo $id is blank

I tried this on another framework and I see an id.

Is there a setting I need to change?

I am using the default config.

Thanks
Reply
#2

Did you start the session?
Reply
#3

(This post was last modified: 03-10-2022, 01:41 PM by frocco.)

(03-10-2022, 01:11 PM)iRedds Wrote: Did you start the session?

No, I am using a fresh install of ci4.

Where and how do you do this?

Thanks

(03-10-2022, 01:13 PM)frocco Wrote:
(03-10-2022, 01:11 PM)iRedds Wrote: Did you start the session?

No, I am using a fresh install of ci4.

Where and how do you do this?

Thanks

I just found it in the BaseController.
Reply




Theme © iAndrew 2016 - Forum software by © MyBB