Saturday, 15 August 2015

php - How to store login details like time of login and which machine (ip address) -


I am starting for php.

My project in php, backend sql.

I have a login form. I want to keep the activity log. How to do it

This includes:

  1. Login time logout time 2. Machine name (IP address) 3.States (sign in / fail)  

Thanks in advance.

You need to use php functionality here.

Do this:

  1. Logout time at login time $ time = date ('ymd their'); 2. Name of the machine (IP address) $ ipaddr = $ _SERVER ['REMOTE_ADDR'] 3.States (sign in / fail) You need to use this mysql query.  

Tell me more help


No comments:

Post a Comment