Re: RevCMS save IP for every login
You're getting there but logging every request is a bit ridiculous and would just generate a lot of noise.
It's common to log the IP-Address when an user authenticates since you can assume that it will not change during it session. Even if it does change, then it will most likely be a normal user.
Check out the feedback, and try to properly set the datatypes inside the database. Oh btw you can store an IP-Address in a varchar of 45 which is the size of an IPv6-address.
Re: RevCMS save IP for every login
Quote:
Originally Posted by
The General
I was about to say the same thing.
And
You can't use mysqli* with Rev, unless you want to waste time converting the whole damn cms to PHP 7 which is useless; as it's all a retarded pile of outdated code.
Logging IP's is kind of useless: You could send an email to have someone verify their session if the IP is different, or add a query ensuring the IP has not changed on each user request to prevent session hijacking :p