Orphaned Session Management Records in Database. How to handle the issue? DB Stability Risk
I have a webapp that uses persistent cookies to allow a user to stay logged it. I am using the Improved Persistent Login Cookie method. https://www.programering.com/a/MDO0MzMwATA.html https://www.experts-exchange.com/questions/29006560/selector-validator-cookies.html When a user is logging in through the LOGIN form and has asked to be remembered I generate a random selector and a random token and add these to a table called Session in my DB along with the userID and other values(IP,time,browser,whaterver). I also set a cookie called KeepMeLoggedIn with the value selector:token and expire in 30