sync, implemented sort, viewing user pages & articles written, updating db
This commit is contained in:
+2
-2
@@ -37,7 +37,7 @@ if (isset($_COOKIE['user_id'])) {
|
||||
$stmt->execute();
|
||||
$user = $stmt->get_result()->fetch_assoc();
|
||||
|
||||
$time = time() + 60 * 60 * 1;
|
||||
$time = time() + 60 * 15;
|
||||
cookies($user, $time);
|
||||
} else if (isset($_COOKIE['remember_user'])) {
|
||||
$conn = get_connection();
|
||||
@@ -64,7 +64,7 @@ if (isset($_COOKIE['user_id'])) {
|
||||
$stmt->bind_param('i', $_COOKIE['user_id']);
|
||||
$stmt->execute();
|
||||
|
||||
$time = time() + 60 * 60 * 1;
|
||||
$time = time() + 60 * 15;
|
||||
cookies($user, $time);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user