I know I can check if a session variable exists by doing:
if (isset($_SESSION['variable']))
But would it be possible to check if the session exists by the first part of its name, so for example:
if (isset($_SESSION['var']))
returns true for:
if (isset($_SESSION['variable']))
or
if (isset($_SESSION['varsomethingelse']))