Jump to content

OOPHP help - User authentication


robcrozier

Recommended Posts

Hi guys.

 

I'm new'is to OO PHP and i would like to seek some helpful opinions about how to use OOPHP when creating a secure user authentication/login class.

 

My main question is.... i would rather not rely solely on a session variable to keep the user logged in to the site.  Is it best practice, and how secure is it to use a 'last activity' value in a database related to each user and use this to determine how long a user has been inactive and then log them out if this is linger than whichever time period i specify in a config file or something similar?

 

Hope this makes sense!

 

Cheers

 

 

 

 

 

Link to comment
https://forums.phpfreaks.com/topic/147475-oophp-help-user-authentication/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.