ok so I have this code:
this sets $_SESSION to whatever to $reso number is, if it is in the URL ie: mysite.com/index.php?r=1Code:$reso = $_GET['r']; if ($reso == 2) $_SESSION['reso'] = $reso; else if ($reso == 1) $_SESSION['reso'] = $reso;
however if the page is just normal mysite.com/index.php
The session is unset for some reason, and it is not passed onto the next page
what is wrong with this?