class Marten::Conf::GlobalSettings::Sessions
- Marten::Conf::GlobalSettings::Sessions
- Reference
- Object
Overview
Allows to configure sessions-related settings.
Defined in:
marten/conf/global_settings/sessions.crInstance Method Summary
-
#cookie_domain : String?
Returns the domain to use when setting the session cookie.
-
#cookie_domain=(cookie_domain : Nil | String)
Allows to set the domain to use when setting the session cookie.
-
#cookie_http_only : Bool
Returns a boolean indicating whether client-side scripts should have access to the session cookie.
-
#cookie_http_only=(cookie_http_only : Bool)
Allows to set whether client-side scripts should have access to the session cookie.
-
#cookie_http_only? : Bool
Returns a boolean indicating whether client-side scripts should have access to the session cookie.
-
#cookie_max_age : Int32
Returns the max age (in seconds) of the session cookie.
-
#cookie_max_age=(cookie_max_age : Int32)
Allows to set the max age (in seconds) of the session cookie.
-
#cookie_name : String
Returns the name of the cookie to use for sessions (defaults to
"sessionid"
). -
#cookie_name=(cookie_name : String | Symbol)
Allows to set the name of the cookie to use for sessions.
-
#cookie_same_site : String
Returns the value of the SameSite flag to use for the session cookie (defaults to
"Lax"
). -
#cookie_same_site=(cookie_same_site : String)
Allows to set the value of the SameSite flag to use for the session cookie.
-
#cookie_secure : Bool
Returns a boolean indicating whether to use a secure cookie for the session cookie.
-
#cookie_secure=(cookie_secure : Bool)
Allows to set whether secure cookies should be used for session cookies.
-
#cookie_secure? : Bool
Returns a boolean indicating whether to use a secure cookie for the session cookie.
-
#store : String
Returns the identifier of the store that should be used to handle sessions.
-
#store=(store : String | Symbol)
Allows to define the store used to handle sessions.
Instance Method Detail
Allows to set the domain to use when setting the session cookie.
Returns a boolean indicating whether client-side scripts should have access to the session cookie.
Allows to set whether client-side scripts should have access to the session cookie.
Returns a boolean indicating whether client-side scripts should have access to the session cookie.
Returns the max age (in seconds) of the session cookie.
By default, the session cookie max age is set to 1209600
(two weeks).
Allows to set the max age (in seconds) of the session cookie.
Returns the name of the cookie to use for sessions (defaults to "sessionid"
).
Allows to set the name of the cookie to use for sessions.
Returns the value of the SameSite flag to use for the session cookie (defaults to "Lax"
).
Allows to set the value of the SameSite flag to use for the session cookie.
Returns a boolean indicating whether to use a secure cookie for the session cookie.
Allows to set whether secure cookies should be used for session cookies.
Returns a boolean indicating whether to use a secure cookie for the session cookie.