class ActionController::Session

Included Modules

Defined in:

action-controller/session.cr

Constant Summary

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 Method Summary

Macro Summary

Instance Method Summary

Constructor Detail

def self.new #

[View source]

Class Method Detail

def self.configure(&) #

[View source]
def self.from_cookies(cookies) #

[View source]
def self.settings #

[View source]

Macro Detail

macro method_missing(call) #

[View source]

Instance Method Detail

def []=(key, value) #

[View source]
def clear #

[View source]
def delete(key) #

[View source]
def delete(key, &block) #

[View source]
def delete_if(&block) #

[View source]
def domain : String | Nil #

[View source]
def domain=(domain : String | Nil) #

[View source]
def encode(cookies) #

[View source]
def modified : Bool #

[View source]
def modified? : Bool #

Returns whether any key-value pair is modified.


[View source]
def parse(cookies) #

[View source]
def reject(&block) #

[View source]
def settings #

[View source]
def touch #

[View source]