mirror of
https://github.com/astaxie/beego.git
synced 2025-07-10 02:50:19 +00:00
fix #235
This commit is contained in:
@ -27,6 +27,7 @@ type Provider interface {
|
||||
SessionRead(sid string) (SessionStore, error)
|
||||
SessionRegenerate(oldsid, sid string) (SessionStore, error)
|
||||
SessionDestroy(sid string) error
|
||||
SessionAll() int //get all active session
|
||||
SessionGC()
|
||||
}
|
||||
|
||||
@ -195,6 +196,10 @@ func (manager *Manager) SessionRegenerateId(w http.ResponseWriter, r *http.Reque
|
||||
return
|
||||
}
|
||||
|
||||
func (manager *Manager) GetActiveSession() int {
|
||||
return manager.provider.SessionAll()
|
||||
}
|
||||
|
||||
//remote_addr cruunixnano randdata
|
||||
|
||||
func (manager *Manager) sessionId(r *http.Request) (sid string) {
|
||||
|
Reference in New Issue
Block a user