Is there any risk of a session expiring before the other session even if they're declared at the same time?
I want to declare 40+ variables as sessions, but only if they didn't already exist, like so:
if (!array_key_exists('user', $_SESSION))
{
$_SESSION['user']['username'] = "";
$_SESSION['user']['age'] = "";
$_SESSION['user']['location'] = "";
//...and 40+ more
}
But if one of those sessions expired before the others, it would ruin the whole code. Is that a possibility?
Thank you!