mirror of
https://github.com/astaxie/beego.git
synced 2025-07-10 03:00:19 +00:00
add cookie test
This commit is contained in:
@ -85,9 +85,10 @@ func NewManager(provideName, config string) (*Manager, error) {
|
||||
if cf.Maxlifetime == 0 {
|
||||
cf.Maxlifetime = cf.Gclifetime
|
||||
}
|
||||
|
||||
provider.SessionInit(cf.Maxlifetime, cf.ProviderConfig)
|
||||
|
||||
err = provider.SessionInit(cf.Maxlifetime, cf.ProviderConfig)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if cf.SessionIDHashFunc == "" {
|
||||
cf.SessionIDHashFunc = "sha1"
|
||||
}
|
||||
|
Reference in New Issue
Block a user