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.