Reset local browser storage after given seconds

If we have a broken session caused by unclean log-out or server restart.
The storage is not purged and the user unable to log-in again.