lib/sinatra/session_helpers.rb
def session_end!(destroy=true)
        if destroy
          session.clear
        else
          session[:authorized] = false
        end
      end
# After this method is called, calls to #session? will return +false+. If you want to keep the old session data around in the cookie for some reason, set +destroy+ to +false+.
After this method is called, calls to #session. will return +false+. If you want to keep the old session data around in the cookie for some reason, set +destroy+ to +false+.
After this method is called calls to #session . will return + false + . If you want to keep the old session data around in the cookie for some reason set + destroy + to + false + .
def session_end!(destroy=true)
        if destroy
          session.clear
        else
          session[:authorized] = false
        end
      end
def session_end! ( destroy = true ) if destroy session . clear else session [ :authorized ] = false end end
After this method is called, calls to #session?
After this method is called calls to #session?
destroy