yesod-session-persist-0.0.0.1: SQL session backend for Yesod
Safe HaskellSafe-Inferred
LanguageGHC2021

Session.Timing.Timeout

Synopsis

Documentation

data Timeout a Source #

How long sessions are allowed to live

See defaultTimeout.

Constructors

Timeout 

Fields

  • idle :: Maybe a

    The amount of time a session will remain active in case there is no activity in the session

    This is used both on the client side (by setting the cookie expires fields) and on the server.

    Setting to Nothing removes the idle timeout.

  • absolute :: Maybe a

    The maximum amount of time a session can be active

    This is used both on the client side (by setting the cookie expires fields) and on the server side.

    Setting to Nothing removes the absolute timeout.

Instances

Instances details
Show a => Show (Timeout a) Source # 
Instance details

Defined in Session.Timing.Timeout

Methods

showsPrec :: Int -> Timeout a -> ShowS #

show :: Timeout a -> String #

showList :: [Timeout a] -> ShowS #

Eq a => Eq (Timeout a) Source # 
Instance details

Defined in Session.Timing.Timeout

Methods

(==) :: Timeout a -> Timeout a -> Bool #

(/=) :: Timeout a -> Timeout a -> Bool #

defaultTimeout :: Timeout NominalDiffTime Source #

Default timeouts

  • idle = 8 hours
  • absolute = 30 days