#2007 Login problem with renamed session name

v1.9.2
open
nobody
5
2012-12-08
2005-12-21
Oliver Mueller
No

If the default session name on a server has been
changed within the php.ini it is not possible to login
anymore.

An error "You have to enable cookies to be able to
login to this site" comes up, which is wrong.

In order to prevent this from happening the following
line of code has to be changed in the tiki-login.php:
if(!isset($_COOKIE['PHPSESSID'])) {
into
if(!isset($_COOKIE[ini_get('session.name')])) {

it would be even better to define a name in the
configuration or startup with
session_name("tikiWikiSession");

or something like that...

Discussion