accessing session variables in function<

yeah...the $_SESSION array is a superglobal..you can use it anywhere...


function chicken()
{
if($_SESSION["potato"])
{
return true;
}
else
{
return false;
}
}you should never have database connection variables in sessions anyway. not secure at all.why did you delete the posts?
 
Back
Top