Jump to content

Safe User Authentication?


Hyaku_

Recommended Posts

Hi!
I read fiew tutorials about User Authentication, but I still need some times for improving security. This is how far I got:

If login is successfull create new session, each time user sends a new request, generate new session id.
When user logins save he's IP and User Agent in session (or should I better save it in a database?)

Then I will check if IP or User Agent changes, log user off. Is it posible if user uses proxy server, that IP could change on every new request or is it ok to check by IP?

All this information I will saved in user class. Any tips how should I improve this? is this cheme ok? Thank you!
Link to comment
https://forums.phpfreaks.com/topic/32753-safe-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.