03-07-2016, 01:16 PM
I know at this point, table updates are somewhat undesired because it can make updates a little more complicated. But I've been racking my brain trying to figure out how to get the elapsed time since the user logs in, AFTER they have logged in. The Login routine modifies the last login seemingly during the login process and overwrites the last login period.
If you WERE going to be poking at the login script, then something I would REALLY like is to have a column in the table where the "last login" is copied (maybe called "last visit" or whatever, doesn't really matter) before the last login field gets updated. This way after a user has logged in, you can determine how many hours, days, whatever it has been since they were last on the side, and would allow custom content based on that interval.
If you WERE going to be poking at the login script, then something I would REALLY like is to have a column in the table where the "last login" is copied (maybe called "last visit" or whatever, doesn't really matter) before the last login field gets updated. This way after a user has logged in, you can determine how many hours, days, whatever it has been since they were last on the side, and would allow custom content based on that interval.