Welcome Guest, Not a member yet? Register   Sign In
Storing login and logout time
#4

[eluser]boltsabre[/eluser]
Eh? You want them to login and if it's the first time redirect them to a "register" form... how can they "login" if they haven't even registered yet?

Anyway, I'd just make a "register" form, and when the user has successfully completed this form set a user table column called "fully_registered" (or whatever you want to call it) to 1. When the user logs in just check for this and if it's 1 you know they are registered, else redirect them to the "register" form. Saves on mucking around with dates and stuff, and saves on DB storage (a tinyint(1) is much smaller that a DATETIME column).


Messages In This Thread
Storing login and logout time - by El Forum - 09-02-2012, 10:43 PM
Storing login and logout time - by El Forum - 09-02-2012, 11:00 PM
Storing login and logout time - by El Forum - 09-03-2012, 02:22 AM
Storing login and logout time - by El Forum - 09-03-2012, 04:49 AM
Storing login and logout time - by El Forum - 09-03-2012, 08:09 PM
Storing login and logout time - by El Forum - 09-03-2012, 09:50 PM
Storing login and logout time - by El Forum - 09-03-2012, 11:01 PM



Theme © iAndrew 2016 - Forum software by © MyBB