Cookie

play.api.mvc.Cookie
See theCookie companion class
object Cookie

Attributes

Companion
class
Graph
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
Cookie.type

Members list

Type members

Classlikes

sealed abstract class SameSite(val value: String)

Attributes

Companion
object
Supertypes
class Object
trait Matchable
class Any
Known subtypes
object Lax.type
object None.type
object Strict.type
object SameSite

Attributes

Companion
class
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type
SameSite.type

Inherited types

The names of the product elements

The names of the product elements

Attributes

Inherited from:
Mirror

The name of the type

The name of the type

Attributes

Inherited from:
Mirror

Value members

Concrete methods

def validatePrefix(cookie: Cookie): Cookie

Check the prefix of this cookie and make sure it matches the rules.

Check the prefix of this cookie and make sure it matches the rules.

Attributes

Returns

the original cookie if it is valid, else a new cookie that has the proper attributes set.

Concrete fields

The cookie's Max-Age, in seconds, when we expire the cookie.

The cookie's Max-Age, in seconds, when we expire the cookie.

When Max-Age = 0, Expires is set to 0 epoch time for compatibility with older browsers.

Attributes