I have been told lately that using session_is_registered() is old and out dated and we should use the superglobal $_SESSION
What about preforming checks on the $SESSION var?
it doesn't quite seem to work for me when i try something like this
if (!($_SESSION['ID'] = FALSE)){ // double negatives are fun.. lol!!!
if (!$_SESSION['referer']){
$_SESSION['errors'] = "You Are Already Logged In!";
header("Location: [url]http://www.iwannatrade.com/test/index.php[/url]");
exit;
}
when preforming checks is it alright to use
if (session_is_registered('ID')){ ...
and if you know... what makes "session_is_registered()" so bad?
I do like to use $SESSION, it seems easier, but can't seem to do the proper checks using only the $SESSION method.
I am trying to develop some consistancy in my coding technique.. so i appreciate any input. Thanks!