Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
sucssite
sso
Commits
f12adfdb
Commit
f12adfdb
authored
Oct 31, 2019
by
Imran Hussain
Browse files
Improve session id gen
parent
e32252e8
Changes
1
Hide whitespace changes
Inline
Side-by-side
public/index.php
View file @
f12adfdb
...
...
@@ -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'
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment