What does the session structure look like for multiple logins?
There will be three parts of the entry on my website.
/ (client area)
/ admin / (backend / admin area)
/ control panel / (control panel area)
You cannot use the same account to access all three.
I came up with this:
$_SESSION['login']['frontend'] = array( 'user_id' => 123, 'is_logged' => true ); $_SESSION['login']['backend'] = array( 'user_id' => 999, 'is_logged' => true );
Is this the right or alternative solution?
source share