class

ActionController::Session

Inherits Habitat::SettingsHelpers < Habitat::TempConfig < Reference < Object

Constants

HABITAT_SETTINGS = [{decl: key : String, example: nil, validation: nil}, {decl: secret : String, example: nil, validation: nil}, {decl: max_age : Int32 = NEVER, example: nil, validation: nil}, {decl: secure : Bool = false, example: nil, validation: nil}, {decl: encrypted : Bool = true, example: nil, validation: nil}, {decl: path : String = "/", example: nil, validation: nil}, {decl: domain : String | ::Nil = nil, example: nil, validation: nil}] of Nil
Log = ::Log.for("action-controller.session")
MAX_COOKIE_SIZE = 4096

Cookies can typically store 4096 bytes.

NEVER = 622080000

(~20 years in seconds)

Constructors

Class methods

configure
Source
from_cookies(cookies)
Source
settings
Source

Instance methods

[]=(key, value)
Source
clear
Source
delete(key)
Source
delete(key, &block)
Source
delete_if
Source
domain
Source
domain=(domain : String | Nil)
Source
encode(cookies)
Source
modified
Source
modified?

Returns whether any key-value pair is modified.

Source
parse(cookies)
Source
reject
Source
settings
Source
touch
Source

Macros

method_missing(call)
Source

Nested types