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


i beginner php.

my project in php , backend sql.

i have login form.i want maintain activity log.how that?

that includes:

         1.login time logout time           2. machine name(ip address)            3.status( sign in pass/fail) 

thanks in advance.

you need use php functionality here.

do this:

 1.login time logout time  $time = date('y-m-d h:i:s');   2. machine name(ip address)   $ipaddr = $_server['remote_addr']   3.status( sign in pass/fail)  need check using mysql query.  

let me know more help.


Comments

Popular posts from this blog

node.js - Mongoose: Cast to ObjectId failed for value on newly created object after setting the value -

gradle error "Cannot convert the provided notation to a File or URI" -

python - NameError: name 'subprocess' is not defined -