set session cookie correctly
This commit is contained in:
parent
a85a3ddc72
commit
1ba8045a9b
@ -178,7 +178,7 @@ function common_ensure_session()
|
|||||||
}
|
}
|
||||||
if (isset($id)) {
|
if (isset($id)) {
|
||||||
session_id($id);
|
session_id($id);
|
||||||
setcookie(session_name(), $id);
|
setcookie(session_name(), $id, 0, common_config('site', 'path'));
|
||||||
}
|
}
|
||||||
@session_start();
|
@session_start();
|
||||||
if (!isset($_SESSION['started'])) {
|
if (!isset($_SESSION['started'])) {
|
||||||
|
Loading…
Reference in New Issue
Block a user