firefox - Persona automatically logs me out right after login -
well, persona setup:
$ -> $('#login-btn').click (e) -> e.preventdefault() navigator.id.request() false $('#logout-btn').click (e) -> e.preventdefault() navigator.id.logout() false current_user = window.current_user or null navigator.id.watch loggedinuser: current_user onlogin: (assertion) -> ($.post '/verify', assertion: assertion, (response) -> if response.success window.location.reload() else console.log response ).fail (err) -> console.log err onlogout: () -> $.post '/logout', () -> window.location.reload()
the /verify
, /logout
paths initialise session. works fine, user added database, means login successful. see logged in screen moment, suddenly, site reloads , logged out again. every time.
during brief moment, able cancel reload , see email in window.current_user
correctly set well.
so why happen?
do happen have disabled third-party cookies, chance?
Comments
Post a Comment