Skip to content

Commit

Permalink
#### Version 1.5.7.8
Browse files Browse the repository at this point in the history
* Improve Comments about session Maxlifetime
* Session.StoreConfig.Maxlifetime: session life time, with second
* 2018-09-20 15:00
  • Loading branch information
devfeel committed Sep 20, 2018
1 parent 7b4bcc2 commit 0a58ba8
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion config/configs.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ type (
EnabledSession bool `xml:"enabled,attr"` //启用Session
SessionMode string `xml:"mode,attr"` //session mode,now support runtime、redis
CookieName string `xml:"cookiename,attr"` //custom cookie name which sessionid store, default is dotweb_sessionId
Timeout int64 `xml:"timeout,attr"` //session time-out period, with minute
Timeout int64 `xml:"timeout,attr"` //session time-out period, with second
ServerIP string `xml:"serverip,attr"` //remote session server url
BackupServerUrl string `xml:"backupserverurl,attr"` //backup remote session server url
StoreKeyPre string `xml:"storekeypre,attr"` //remote session StoreKeyPre
Expand Down
2 changes: 1 addition & 1 deletion session/session.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ type (
//session config info
StoreConfig struct {
StoreName string
Maxlifetime int64
Maxlifetime int64 //session life time, with second
CookieName string //custom cookie name which sessionid store
ServerIP string //if use redis, connection string, like "redis://:[email protected]:6379/0"
BackupServerUrl string //if use redis, if ServerIP is down, use this server, like "redis://:[email protected]:6379/0"
Expand Down
2 changes: 1 addition & 1 deletion session/store_runtime.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ type RuntimeStore struct {
lock *sync.RWMutex // locker
sessions map[string]*list.Element // map in memory
list *list.List // for gc
maxlifetime int64
maxlifetime int64 // session life time, with second
}

func NewRuntimeStore(config *StoreConfig) *RuntimeStore {
Expand Down
5 changes: 5 additions & 0 deletions version.MD
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
## dotweb版本记录:

#### Version 1.5.7.8
* Improve Comments about session Maxlifetime
* Session.StoreConfig.Maxlifetime: session life time, with second
* 2018-09-20 15:00

#### Version 1.5.7.7
* New Feature: Add HttpServer.SetEnabledAutoOPTIONS, used to set route use auto options
* Detail:
Expand Down

0 comments on commit 0a58ba8

Please sign in to comment.