when synchronizing using syncml, we already have php based session started

and we are (currently) not allowed to change the session_id later
to solve this problem, we simply return the current session_id in new_session_id()
This commit is contained in:
Lars Kneschke 2006-10-25 08:18:13 +00:00
parent 40181f7d5c
commit cf1dad6d52

View File

@ -1326,6 +1326,13 @@
*/
function new_session_id()
{
# when synchronizing using syncml, we already have php4 based session started
# and we are currently not allowed to change the sessionid later
# to solve this problem, we simply return the current session_id
if(basename($_SERVER["REQUEST_URI"]) == 'rpc.php' && session_id() != '') {
return session_id();
}
return md5($GLOBALS['egw']->common->randomstring(15));
}