Răsfoiți Sursa

Enable persistent sessions

Zachary Kotlarek 11 ani în urmă
părinte
comite
d54c220459
1 a modificat fișierele cu 1 adăugiri și 1 ștergeri
  1. 1 1
      web/includes/auth.php

+ 1 - 1
web/includes/auth.php

@@ -4,7 +4,7 @@ $AUTH_ERR = '';
 
 # Always start a session, unless we're on the CLI
 if (php_sapi_name() != 'cli') {
-	#session_set_cookie_params(0, '/tv', $_SERVER['HTTP_HOST'], true, true);
+	session_set_cookie_params(30 * 86400, '/tv', $_SERVER['HTTP_HOST'], true, true);
 	session_start();
 }