Login with html5 lcoalStorage. Allow page to reload