Bolt\Users::checkValidSession PHP Method

checkValidSession() public method

Deprecation: Deprecated since 3.0, to be removed in 4.0.
public checkValidSession ( )
    public function checkValidSession()
    {
        $request = Request::createFromGlobals();
        $authCookie = $request->cookies->get($this->app['token.authentication.name']);
        if ($authCookie === null) {
            return false;
        }
        return $this->app['access_control']->isValidSession($request->cookies->get($this->app['token.authentication.name']));
    }