Update session jadi 30 hari
This commit is contained in:
parent
6f23dea21f
commit
f43a31bc63
@ -40,7 +40,7 @@ class Session extends BaseConfig
|
|||||||
* The number of SECONDS you want the session to last.
|
* The number of SECONDS you want the session to last.
|
||||||
* Setting to 0 (zero) means expire when the browser is closed.
|
* Setting to 0 (zero) means expire when the browser is closed.
|
||||||
*/
|
*/
|
||||||
public int $expiration = 7200;
|
public int $expiration = 60*60*24*30;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* --------------------------------------------------------------------------
|
* --------------------------------------------------------------------------
|
||||||
|
|||||||
@ -146,8 +146,6 @@ class Auth extends BaseController {
|
|||||||
return view('auth_login', $data);
|
return view('auth_login', $data);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
public function logout() {
|
public function logout() {
|
||||||
session()->destroy();
|
session()->destroy();
|
||||||
return redirect()->to('/auth/login');;
|
return redirect()->to('/auth/login');;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user