Hello. Im new to PHP, so I would appreciate if you help me. I try to check if is the same session, so I won't get the twice the information form the same user. I have a problem with the If statement, it always evaluates the expession false, so the code returns true; the problem is here:if($elements[5] == $session_id())
Here is the entire code :
function check_session ($array_to_check)
{
$elements = explode("::",$array_to_check);$test=session_id();
if($elements[5] == session_id())
{
return false;
}
else
{
return true;
}
}
and the
$array_to_check to check is something like:
127.0.0.1::homecomputer::No Proxy Server on use::1116::September 10, 2003, 11:04 am::b2abe742951e91e1e87ada3f98128234::
Can u help me with the error.
Thx a lot.