Session using cookie

This commit is contained in:
Ibnu Maksum 2024-02-12 09:45:44 +07:00
parent 66432eda56
commit 9543ee6e34
No known key found for this signature in database
GPG key ID: 7FC82848810579E5
7 changed files with 80 additions and 13 deletions

View file

@ -22,6 +22,7 @@ switch ($do) {
$d_pass = $d['password'];
if (Password::_verify($password, $d_pass) == true) {
$_SESSION['aid'] = $d['id'];
Admin::setCookie($d['id']);
$d->last_login = date('Y-m-d H:i:s');
$d->save();
_log($username . ' ' . $_L['Login_Successful'], 'Admin', $d['id']);