mirror of
https://github.com/astaxie/beego.git
synced 2024-11-22 14:20:54 +00:00
GetProvider
This commit is contained in:
parent
7886e69236
commit
1097ac3682
@ -16,7 +16,7 @@
|
|||||||
//
|
//
|
||||||
// Usage:
|
// Usage:
|
||||||
// import(
|
// import(
|
||||||
// "github.com/astaxie/beego/session"
|
// "github.com/hsoshiant/beego/session"
|
||||||
// )
|
// )
|
||||||
//
|
//
|
||||||
// func init() {
|
// func init() {
|
||||||
@ -152,6 +152,10 @@ func NewManager(provideName string, cf *ManagerConfig) (*Manager, error) {
|
|||||||
}, nil
|
}, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (manager *Manager) GetProvider() Provider {
|
||||||
|
return manager.provider
|
||||||
|
}
|
||||||
|
|
||||||
// getSid retrieves session identifier from HTTP Request.
|
// getSid retrieves session identifier from HTTP Request.
|
||||||
// First try to retrieve id by reading from cookie, session cookie name is configurable,
|
// First try to retrieve id by reading from cookie, session cookie name is configurable,
|
||||||
// if not exist, then retrieve id from querying parameters.
|
// if not exist, then retrieve id from querying parameters.
|
||||||
|
Loading…
Reference in New Issue
Block a user