# Functions
Clear removes all data for the current session.
Destroy deletes the current session.
Domain sets the 'Domain' attribute on the session cookie.
ErrorFunc allows you to control behavior when an error is encountered loading or writing a session.
Exists returns true if the given key is present in the session data.
GetBool returns the bool value for a given key from the session data.
GetBytes returns the byte slice ([]byte) value for a given key from the session data.
GetFloat returns the float64 value for a given key from the session data.
GetInt returns the int value for a given key from the session data.
GetInt64 returns the int64 value for a given key from the session data.
GetObject reads the data for a given session key into an arbitrary object
(represented by the dst parameter).
GetString returns the string value for a given key from the session data.
GetTime returns the time.Time value for a given key from the session data.
HttpOnly sets the 'HttpOnly' attribute on the session cookie.
IdleTimeout sets the maximum length of time a session can be inactive before it expires.
Keys returns a slice of all key names present in the session data, sorted alphabetically.
Lifetime sets the maximum length of time that a session is valid for before it expires.
Manage returns a new session manager middleware instance.
No description provided by the author
Path sets the 'Path' attribute on the session cookie.
Persist sets whether the session cookie should be persistent or not (i.e.
PopBool removes the bool value for a given key from the session data and returns it.
PopBytes removes the byte slice ([]byte) value for a given key from the session data and returns it.
PopFloat removes the float64 value for a given key from the session data and returns it.
PopInt removes the int value for a given key from the session data and returns it.
PopInt64 remvoes the int64 value for a given key from the session data and returns it.
PopObject removes the data for a given session key and reads it into a custom object (represented by the dst parameter).
PopString removes the string value for a given key from the session data and returns it.
PopTime removes the time.Time value for a given key from the session data and returns it.
PutBool adds a bool value and corresponding key to the session data.
PutBytes adds a byte slice ([]byte) value and corresponding key to the the session data.
PutFloat adds an float64 value and corresponding key to the session data.
PutInt adds an int value and corresponding key to the session data.
PutInt64 adds an int64 value and corresponding key to the session data.
PutObject adds an arbitrary object and corresponding key to the the session data.
PutString adds a string value and corresponding key to the the session data.
PutTime adds an time.Time value and corresponding key to the session data.
RegenerateToken creates a new session token while retaining the current session
data.
Remove deletes the given key and corresponding value from the session data.
Renew creates a new session token and removes all data for the session.
Save immediately writes the session cookie header to the ResponseWriter and saves the session data to the storage engine, if needed.
Secure sets the 'Secure' attribute on the session cookie.
# Variables
ContextName changes the value of the (string) key used to store the session information in Request.Context.
CookieName changes the name of the session cookie issued to clients.
ErrAlreadyWritten is returned when an attempt is made to modify the session data after it has already been sent to the storage engine and client.
ErrTypeAssertionFailed is returned by operations on session data where the received value could not be type asserted or converted into the required type.
# Interfaces
Engine is the interface for storage engines.
# Type aliases
Deprecated: Middleware previously defined the signature for the session management middleware returned by Manage.
Option defines the functional arguments for configuring the session manager.