Basically this everything I have been trying to have session variable on same page where people that have sessions and people that don’t have session. When you don’t have a session I get an undefined variable error. Its like any normal session example.
$session = $_SESSION['id'];
Any ideas how I can remove this error so when people without a session will not see this and the people with a session won’t lose their session as well like what a isset($_SESSION['id']) does.
1 Answer