stefangabos / Zebra_Session

A drop-in replacement for PHP's default session handler which stores session data in a MySQL database, providing better performance, better security and protection against session fixation and session hijacking
https://stefangabos.github.io/Zebra_Session/Zebra_Session/Zebra_Session.html
Other
172 stars 85 forks source link

IP Address Update #54

Closed dvelopin closed 3 months ago

dvelopin commented 3 months ago

New getIPAddress() function to make getting end user IP address friendly with AWS Load Balancer, for example.

stefangabos commented 3 months ago

thanks! i did some code formatting but it's still pretty much your code. i love the fact that you used getenv, i didn't know about it

stefangabos commented 1 month ago

There's a new way of doing this, the previous solution was removed, so updating to 4.1.0 will break your code. Use instead a callable for the lock_to_ip argument in the constructor. See the docs

dvelopin commented 3 weeks ago

This makes sense, I like the new granular control for a better handle on what is allowed/expected. Great job on this.