Welcome Guest, Not a member yet? Register   Sign In
Log info
#5

[eluser]simshaun[/eluser]
I would add 2 columns to the users table: is_logged_in & login_time

Upon login,
- If is_logged_in = 1 & login_time is not expired (I'd have a 10 minute expire time [now() + 600]), then alert user that they are already logged in. (Failure)
- Else, set is_logged_in = 1 & set login_time to the current timestamp. (Success)


Messages In This Thread
Log info - by El Forum - 11-20-2008, 10:24 AM
Log info - by El Forum - 11-25-2008, 01:48 AM
Log info - by El Forum - 11-25-2008, 02:10 AM
Log info - by El Forum - 11-25-2008, 07:39 AM
Log info - by El Forum - 11-25-2008, 09:07 AM



Theme © iAndrew 2016 - Forum software by © MyBB