Skip to content
Playground(another site)

bynk.actor.signed_cookie_ttl_long

Warning A SignedCookie ttl is longer than 30 days (warning).

A stateless signed cookie cannot be revoked before it expires: a copy a user already took keeps working for the whole ttl. Beyond 30 days that is a long exposure, so it warns. Shorten the ttl, or keep the session on the server (see examples/sessions) if you need to log out everywhere.

Example

actor User { auth = SignedCookie(secret = "SESSION_KEY", ttl = 31.days), identity = UserId } // ⚠ long-lived
actor User { auth = SignedCookie(secret = "SESSION_KEY", ttl = 12.hours), identity = UserId } // ✓

In the Book

See also

  • Every code in its category, Actors, on the diagnostic index.
  • bynk explain bynk.actor.signed_cookie_ttl_long shows the same from the installed toolchain, without a network.