diff --git a/app/Config/Session.php b/app/Config/Session.php index 6944710..71d27b8 100644 --- a/app/Config/Session.php +++ b/app/Config/Session.php @@ -40,7 +40,7 @@ class Session extends BaseConfig * The number of SECONDS you want the session to last. * Setting to 0 (zero) means expire when the browser is closed. */ - public int $expiration = 7200; + public int $expiration = 60*60*24*30; /** * -------------------------------------------------------------------------- diff --git a/app/Controllers/Auth.php b/app/Controllers/Auth.php index dc5a832..3e9ad0a 100644 --- a/app/Controllers/Auth.php +++ b/app/Controllers/Auth.php @@ -146,8 +146,6 @@ class Auth extends BaseController { return view('auth_login', $data); } - - public function logout() { session()->destroy(); return redirect()->to('/auth/login');;