Jump to content
Larry Ullman's Book Forums

For The Login.inc.php Script On Page 99 , Step 9


Recommended Posts

I just wanted to put this out there in case it helps anyone ... (I am using PHP 5.5)

 

For the login.inc.php script on Page 99 , step 9

 

In the book the row is:
if ($row['expired'] === 1) $_SESSION['user_not_expired'] = true;

 

The above line was not working for me so I used this:
if ($row['expired'] === '1') $_SESSION['user_not_expired'] = true;...( I added single quotes around 1)

This will also will work work:
if ($row['expired'] ==1) $_SESSION['user_not_expired'] = true;...(use double ==)

 

 

Thank you

David

Link to comment
Share on other sites

 Share

×
×
  • Create New...