glenelkins Posted September 24, 2006 Share Posted September 24, 2006 HiI have never come accross this before and it makes no sense. I have a script that is some how taking a user id from $_GET but all it has is the following:[code]session_register("refid_session");foreach($_GET as $k=>$v)$id .=$k;if($id !="") {if($_SESSION["refid_session"]=="") {$_SESSION["refid_session"]=$id ;}}[/code]what is this "refid_session" thing? Quote Link to comment Share on other sites More sharing options...
mb81 Posted September 24, 2006 Share Posted September 24, 2006 It's just the name of a session variable that stores the id. They didn't want to store it as $_SESSION['id'] because of it could be overwritten by the REQUEST depending on the php.ini settings. Quote Link to comment Share on other sites More sharing options...
glenelkins Posted September 24, 2006 Author Share Posted September 24, 2006 ok so that bit of script is pointless it does nothing Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.