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 post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...