Welcome Guest, Not a member yet? Register   Sign In
How simply work session ?
#1

Hello,

I try to use session() but I get this error :
{PHP internal code}   —  CodeIgniter\Debug\Exceptions->shutdownHandler ()

I want to set session globally in BaseController and simply use session() to set my session.

My session is working if I use php superglobal $_SESSION[] but impossible to use session().

Please give me the code to insert into BaseController, normally I can simply put code like this in my controller :

session('test')='my test';
echo session('test');

No ?

I'm lost trying many many thing !
Reply


Messages In This Thread
How simply work session ? - by lolo57 - 10-21-2020, 12:15 PM
RE: How simply work session ? - by includebeer - 10-24-2020, 08:57 AM
RE: How simply work session ? - by paulbalandan - 10-24-2020, 11:07 AM
RE: How simply work session ? - by InsiteFX - 10-24-2020, 01:39 PM



Theme © iAndrew 2016 - Forum software by © MyBB