o0katz0o
05-21-2004, 04:15 AM
ok so I have this code:
$reso = $_GET['r'];
if ($reso == 2)
$_SESSION['reso'] = $reso;
else if ($reso == 1)
$_SESSION['reso'] = $reso;
this sets $_SESSION to whatever to $reso number is, if it is in the URL ie: mysite.com/index.php?r=1
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?
$reso = $_GET['r'];
if ($reso == 2)
$_SESSION['reso'] = $reso;
else if ($reso == 1)
$_SESSION['reso'] = $reso;
this sets $_SESSION to whatever to $reso number is, if it is in the URL ie: mysite.com/index.php?r=1
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?