Refactor
This commit is contained in:
parent
3caa71a6c5
commit
6478af7d41
1 changed files with 1 additions and 7 deletions
|
@ -46,15 +46,9 @@ session_start(
|
|||
array(
|
||||
'name' => 'wishthis',
|
||||
'cookie_lifetime' => $sessionLifetime,
|
||||
'cookie_path' => '/'
|
||||
)
|
||||
);
|
||||
setcookie(
|
||||
name: session_name(),
|
||||
value: session_id(),
|
||||
expires_or_options: time() + $sessionLifetime,
|
||||
path: '/',
|
||||
domain: ''
|
||||
);
|
||||
|
||||
/** Backwards compatibility */
|
||||
if (!isset($_SESSION['user']) || is_array($_SESSION['user'])) {
|
||||
|
|
Loading…
Reference in a new issue