class Crack::Handler::Session

Overview

The session handler provides a cookie based session. The handler will encode and decode the cookie and provide the hash in the context that can be used to maintain data across requests.

Defined in:

crack/session.cr

Constructors

Class Method Summary

Instance Method Summary

Instance methods inherited from class Crack::Handler::Base

call(context) call, config(&) config

Class methods inherited from class Crack::Handler::Base

config(&) config

Constructor Detail

def self.new #

[View source]

Class Method Detail

def self.instance #

class method to return a singleton instance of this Controller


[View source]

Instance Method Detail

def call(context) #
Description copied from class Crack::Handler::Base

Execution of this handler.


[View source]
def key : String #

[View source]
def key=(key : String) #

[View source]
def secret : String #

[View source]
def secret=(secret : String) #

[View source]