Commit 1097ac36 authored by Hossein Karimy's avatar Hossein Karimy

GetProvider

parent 7886e692
......@@ -16,7 +16,7 @@
//
// Usage:
// import(
// "github.com/astaxie/beego/session"
// "github.com/hsoshiant/beego/session"
// )
//
// func init() {
......@@ -152,6 +152,10 @@ func NewManager(provideName string, cf *ManagerConfig) (*Manager, error) {
}, nil
}
func (manager *Manager) GetProvider() Provider {
return manager.provider
}
// getSid retrieves session identifier from HTTP Request.
// First try to retrieve id by reading from cookie, session cookie name is configurable,
// if not exist, then retrieve id from querying parameters.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment