last day (23 days later) » 

6:48 PM
Hey Shawn I know I can add more conditions, but I don't need to
Im just wondering how could I make it count each day without logins?
I tried replacing all last_login with last_access in code and it just failed
like first account access since midnight
so basically same code. What should I change?
thanks @ShawnConn
 
As mentioned, the same logic should hold. last_access is a little tricky though. I mentioned in the answer that it's updated before the logged in event is triggered.
So you'll need to use a different event.
I think the bootstrap event should handle that situation.
I can't remember what the name of it is off the top of my head.
I would experiment with different events that trigger at different parts of the page request pipeline to see what fits for your user activity you're trying to alert on.
Fundamentally, the strtotime midnight logic should hold, it's just a matter of capturing the right timestamp at the right event.
 
ok thanks
 
7:04 PM
Hope that helps, I don't have access to your environment so it's really one those "you'll need to experiment around" types of questions.
 
ok thanks again
 

  last day (23 days later) »