Skip to content
Playground(another site)

bynk.actor.signed_cookie_bad_name

Error A SignedCookie cookie is not a legal cookie name.

A cookie name is an RFC 6265 token: letters, digits and a few punctuation characters, with no space, =, ;, , or quote. A browser would drop or misread anything else. The default, __Host-session, is always legal.

Example

actor User { auth = SignedCookie(secret = "SESSION_KEY", ttl = 12.hours, cookie = "my session"), identity = UserId } // ✗
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_bad_name shows the same from the installed toolchain, without a network.