Jump to content

Archived

This topic is now archived and is closed to further replies.

glenelkins

Whats this --> $_SESSION["refid_session"]

Recommended Posts

Hi

I 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?

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites
ok so that bit of script is pointless it does nothing

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.