0

I'm currently busy with a project that needs users when they log in for the first time (and haven't created one yet). Honestly, I don't know where to start. I would like to do it in a good way.

2 Answers 2

1

You can create a field in table named last_login and update it on every login .

and if it is empty then sure it will be its first time :)

0

You have to create a field in database first_time_login. If first_time_login is NULL or empty add current time .

As when new user is created first_time_login field will be empty. When user will login 1st time current time will be updated in first_time_login field with checking if field is not empty.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.