I have set up code that whenever I user returns the site a new cookie is created(persistent) and the token
is stored in the corresponding table in the database.
Suppose that someone comes 2-3 times/day in the site,multiply that with number of registered users and
the tables gets written many times,becoming large quickly.
SO...how often should I erase table rows you think
Do you think-for example- that from the moment I create a token to the table I should delete the previous one-belonging to the same user obviously
Is there a rule of thumb in this
As a second though, maybe I just need update the token in the place of the previous one
Edited by jimfog, 10 October 2012 - 09:19 AM.