sessiondb/

directory
v0.0.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 6, 2016 License: MIT

README

Repository information

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.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL