Browse Source

Session optimisation

Vova Tkach 6 years ago
parent
commit
c8ee7f7a85
2 changed files with 0 additions and 4 deletions
  1. 0 1
      engine/actions/action_signin.go
  2. 0 3
      engine/wrapper/wrapper.go

+ 0 - 1
engine/actions/action_signin.go

@@ -50,7 +50,6 @@ func (this *Action) Action_signin() {
 
 	// Save to current session
 	this.wrapper.Session.SetInt("UserId", user_id)
-	this.wrapper.Session.SetBool("IsLogged", true)
 
 	// Reload current page
 	this.write(fmt.Sprintf(`window.location.reload(false);`))

+ 0 - 3
engine/wrapper/wrapper.go

@@ -135,9 +135,6 @@ func (this *Wrapper) Run(hRun handleRun) {
 	if !this.Session.IsSetInt("UserId") {
 		this.Session.SetInt("UserId", 0)
 	}
-	if !this.Session.IsSetBool("IsLogged") {
-		this.Session.SetBool("IsLogged", false)
-	}
 
 	// Logic
 	if hRun != nil {