Skip to content

Commit

Permalink
Corrected booking sample for new session methods
Browse files Browse the repository at this point in the history
  • Loading branch information
brendensoares committed Feb 25, 2014
1 parent 361ff11 commit 2720495
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions samples/booking/app/controllers/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,9 @@ func (c Application) Login(username, password string, remember bool) revel.Resul
if err == nil {
c.Session["user"] = username
if remember {
c.Session.SetSessionDefaultExpiration()
c.Session.SetDefaultExpiration()
} else {
c.Session.SetSessionNoExpiration()
c.Session.SetNoExpiration()
}
c.Flash.Success("Welcome, " + username)
return c.Redirect(routes.Hotels.Index())
Expand Down

0 comments on commit 2720495

Please sign in to comment.