Hi guys...
I want to restrict Member page from Admin using session
(and so the Admin page too..)
When im log in as Admin my $_SESSION is set user_type to "Admin"
I still can access the Member page. That was not what I want.
So I type this $_SESSION code at member page at the top of the page
if ( $_SESSION('user_type') == "Admin")
{
header(location: admin/index.php );
}
and it always return an Error for line
if ( $_SESSION('user_type') == "Admin")
But if I echo the $_SESSION('user_type') , the result is "Admin"
Somebody can help me?