Jump to content

Logging the IP address for security in session managers


jordanwb

Recommended Posts

On my script that I'm working, I use mt_rand to generate a session id, as well as the user's id as basis for a valid session (I don't use mt_rand for the user id). When the user logs in, a random number and the user's id is saved to a table and is sent as a cookie. So what I'd like to know is: Would recording the user's IP address benefit security?

 

I think that it would in that is could help prevent Man in the Middle attacks, but I'd like your input.

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.