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? Link to comment https://forums.phpfreaks.com/topic/21885-whats-this-_sessionrefid_session/ 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. Link to comment https://forums.phpfreaks.com/topic/21885-whats-this-_sessionrefid_session/#findComment-97742 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 Link to comment https://forums.phpfreaks.com/topic/21885-whats-this-_sessionrefid_session/#findComment-97743 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.