diff --git a/session.go b/session.go index 00aab67..22e6a93 100644 --- a/session.go +++ b/session.go @@ -193,3 +193,8 @@ func (s *Session) MustGet(key string) interface{} { panic("Key \"" + key + "\" does not exist") } + +// IsClosed returns the status of the connection. +func (s *Session) IsClosed() bool { + return s.closed() +}