You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I get error Notice: Undefined variable: _SESSION in file ..... Below the my config
// Start the session the first time some component request the session service
$di->set(
'session',
function () use ($di) {
$sessionAdapter = $di->get('config')->application->session->adapter;
$session = new $sessionAdapter($di->get('config')->application->session->options->toArray());
$session->start();
return $session;
},
true
);
It not working, but if i add session_start(); it will working
// Start the session the first time some component request the session service
$di->set(
'session',
function () use ($di) {
$sessionAdapter = $di->get('config')->application->session->adapter;
$session = new $sessionAdapter($di->get('config')->application->session->options->toArray());
$session->start();
return $session;
},
true
);
session_start()
Is it bug ?
The text was updated successfully, but these errors were encountered:
You don't have to access _SESSION super global directly, you have to use $this->session->set/$this->session->set so the service will be initialized the first time it's used.
Hi Team
When I update to version 2.0.3
I get error Notice: Undefined variable: _SESSION in file ..... Below the my config
It not working, but if i add session_start(); it will working
Is it bug ?
The text was updated successfully, but these errors were encountered: