class DA_Session

Defined in:

da_session.cr

Constant Summary

ID_SIZE = 32

Constructors

Instance Method Summary

Constructor Detail

def self.new(context : HTTP::Server::Context, secret : String = "", secure : Bool = true, lifespan : Time::Span = 1.hour, cookie_name : String = "da_session_id", domain : Nil | String = nil, path : String = "/") #

[View source]

Instance Method Detail

def context : HTTP::Server::Context #

[View source]
def cookie_name : String #

[View source]
def delete #

[View source]
def deleted? : Bool #

[View source]
def domain : String | Nil #

[View source]
def encoded_id(sess_id : String) #

[View source]
def encoded_id #

[View source]
def id #

[View source]
def id? #

[View source]
def in_client? : Bool #

[View source]
def lifespan : Time::Span #

[View source]
def load #

[View source]
def new? : Bool #

[View source]
def new_cookie(value : String = "") #

[View source]
def path : String #

[View source]
def save #

[View source]
def secret : String #

[View source]
def secure : Bool #

[View source]