# Reports of user logged out twice today - related to recent auth tokens changes?

**URL:** <https://meta.discourse.org/t/reports-of-user-logged-out-twice-today-related-to-recent-auth-tokens-changes/57330>\
**Category:** Bug\
**Created:** [13.Февраль.2017 21:34:17 UTC](https://meta.discourse.org/t/reports-of-user-logged-out-twice-today-related-to-recent-auth-tokens-changes/57330 "2017-02-13T21:34:17Z")\
**Posts on this page:** 1\
**Showing post:** 20

<div class="post-metadata">

**Author:** ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)\
**Post date:** [22.Февраль.2017 20:19:47 UTC](https://meta.discourse.org/t/reports-of-user-logged-out-twice-today-related-to-recent-auth-tokens-changes/57330/20 "2017-02-22T20:19:47Z")

</div>

One more very subtle fix today:

> <https://github.com/discourse/discourse/commit/b7d2edc7dc4e1e80c1ab1ef8161a7e08fbf50b02>
>
> It appears that in some cases ios queues up requests up front
> and "releases" the…m when tab gets focus, this allows for a certain
> number of cookie misses for this case. Otherwise you get logged off.

There was a case in iOS where it would send old cookies cause a request got interrupted when app was kicked to background and then resumed when app got focus (with old cookie). Old behavior was to log off when it happened. New behavior is to give a bit more grace.

I do wonder though if I should simply always accept the previous token unconditionally. Cause it would simplify this weird turn of events. (at the moment prev token is only accepted for 1 minutes after new token is validated)

---

_[View the full topic](https://meta.discourse.org/t/reports-of-user-logged-out-twice-today-related-to-recent-auth-tokens-changes/57330)._
