diff --git a/mvc/controller.go b/mvc/controller.go index ec2d3211..515e8982 100644 --- a/mvc/controller.go +++ b/mvc/controller.go @@ -2,15 +2,15 @@ package mvc import ( "fmt" - "github.com/kataras/golog" "reflect" "strings" - "github.com/kataras/iris/mvc/di" - "github.com/kataras/iris/context" "github.com/kataras/iris/core/router" "github.com/kataras/iris/core/router/macro" + "github.com/kataras/iris/mvc/di" + + "github.com/kataras/golog" ) // BaseController is the optional controller interface, if it's diff --git a/sessions/session.go b/sessions/session.go index bb9b46f2..92b46e39 100644 --- a/sessions/session.go +++ b/sessions/session.go @@ -31,10 +31,12 @@ type ( } ) -// Destroy destroys this session, it removes all sessions and flash values, -// the session entry from the server and updates the registered session databases, -// note that this method does NOT removes the client's cookie, although -// it should be re-seted if new session is attached to that (client). +// Destroy destroys this session, it removes its session values and any flashes. +// This session entry will be removed from the server, +// the registered session databases will be notified for this deletion as well. +// +// Note that this method does NOT remove the client's cookie, although +// it should be reseted if new session is attached to that (client). // // Use the session's manager `Destroy(ctx)` in order to remove the cookie as well. func (s *Session) Destroy() {