add sub domain cookie support
This commit is contained in:
parent
85b17829c5
commit
b789295fb4
|
@ -69,6 +69,8 @@ use Helpers\View as view;
|
||||||
if (!empty($phpSessId) && session_id() != $phpSessId) {
|
if (!empty($phpSessId) && session_id() != $phpSessId) {
|
||||||
session_destroy();
|
session_destroy();
|
||||||
session_id($phpSessId);
|
session_id($phpSessId);
|
||||||
|
ini_set('session.cookie_domain', '.sanjiangyuan.org.cn' );
|
||||||
|
session_set_cookie_params(0, '/', '.sanjiangyuan.org.cn');
|
||||||
session_start();
|
session_start();
|
||||||
}
|
}
|
||||||
// check if a user is logged in and has a valid role,
|
// check if a user is logged in and has a valid role,
|
||||||
|
|
Loading…
Reference in New Issue