Commit f12adfdb authored by Imran Hussain's avatar Imran Hussain
Browse files

Improve session id gen

parent e32252e8
......@@ -10,6 +10,15 @@ $RATELIMITED = false;
$SUCS_LOGIN = false;
$ISS_LOGIN = false;
ini_set("session.use_strict_mode",1);
//php7.1 and above
ini_set("session.sid_bits_per_character",5);
ini_set("session.sid_length",64);
//php7.1 below
ini_set("session.hash_bits_per_character",5);
ini_set("session.hash_function", "sha256");
session_set_cookie_params(0,"/","sucs.org",true,true);
session_name('sucs_sso_id_v1');
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment