![]() |
I have created a custom handler that allows me to write logs to a database. Now I need to use that same logger to capture the user's IP address and Session related data in the database, as well. Suggestions, please?
To capture the IP Address: $request = \Config\Services::request(); $request->getIPAddress(), I was able to capture session data with: $_SESSION['username'], $_SESSION['user_id'], |
Messages In This Thread |
Capturing IP Address & Session in Log File - by mikestratton - 10-04-2023, 09:20 AM
RE: Capturing IP Address & Session in Log File - by InsiteFX - 10-04-2023, 08:21 PM
|