Subject: Last devel version - $cookiePath wrong assigment
In session.lib.php. This code inside UnbCreateSession function:
Resulting value into $cookiePath = '//'
It means, that in some, maybe newer, php installations dirname (or $_SERVER['PHP_SELF']) logic changed. As example: http://89.163.78.124/test.php
So, maybe it will be better to do this to prevent such problem:
But this code also used inside UnbCheckSession, UnbNoTermSession, UnbTermSession. So, because now process is more complicated than just taking from sysvar, common function needed:
I also attached diff file maked from my changes.
Sorry for mistakes and trimmered description - my English not good.
- // Use the URL path of the calling script as cookie path.
- if (rc('cookie_path')) $cookiePath = rc('cookie_path');
Resulting value into $cookiePath = '//'
It means, that in some, maybe newer, php installations dirname (or $_SERVER['PHP_SELF']) logic changed. As example: http://89.163.78.124/test.php
So, maybe it will be better to do this to prevent such problem:
But this code also used inside UnbCheckSession, UnbNoTermSession, UnbTermSession. So, because now process is more complicated than just taking from sysvar, common function needed:
I also attached diff file maked from my changes.
Sorry for mistakes and trimmered description - my English not good.
The author has attached one file to this post:
session.lib.php.patch 2.2 kBytesYou have no permission to open this file.

Night Nord
Show profile
Link to this post