mirror of
https://github.com/astaxie/beego.git
synced 2024-11-22 08:50:56 +00:00
commit
1a66ad56c6
@ -154,6 +154,11 @@ func NewManager(provideName string, cf *ManagerConfig) (*Manager, error) {
|
|||||||
}, nil
|
}, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// GetProvider return current manager's provider
|
||||||
|
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