mirror of
https://github.com/standardebooks/web.git
synced 2025-07-13 01:52:02 -04:00
Log user in automatically if a request with HTTP auth is received
This commit is contained in:
parent
216e63f014
commit
c457af896c
6 changed files with 25 additions and 10 deletions
|
@ -24,8 +24,6 @@ try{
|
|||
|
||||
$session->Create($email);
|
||||
|
||||
setcookie('sessionid', $session->SessionId, time() + 60 * 60 * 24 * 14 * 1, '/', SITE_DOMAIN, true, false); // Expires in two weeks
|
||||
|
||||
if($requestType == WEB){
|
||||
http_response_code(303);
|
||||
header('Location: ' . $redirect);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue