Discover Packages
github.com/fasthttp-contrib/sessions
sessiondb
directory
Version:
v0.0.0-...-74f6ac7
Opens a new window with list of versions in this module.
Published: Sep 5, 2016
License: MIT
Opens a new window with license information.
README
README
¶
This repository contains the built'n session databases for the go-sessions .
How to Register?
//...
import (
"github.com/kataras/go-sessions"
"github.com/kataras/go-sessions/sessiondb/$FOLDER"
)
//...
db := $FOLDER.New($FOLDER.Config{})
//...
manager:= sessions.New(sessions.Config{})
manager.UseDatabase(db)
//...
Note: You can use more than one database to save the session values, but the initial data will come from the first non-empty Load
, look inside code for more information on how to create your own session database.
Expand ▾
Collapse ▴
Directories
¶
Click to show internal directories.
Click to hide internal directories.