UnionOfRAD/lithium — Issue #218: php session.name is could be incorrect with default setup.
Author: andraskende
Created: 2011-12-22 06:09:15+00:00
State: open

lithium/storage/session/adapter/Php.php
line 57:
$config['session.name'] = basename(LITHIUM_APP_PATH);

/Users/andras/Sites/s3.kende.dev/app/webroot :
this works :
basename(LITHIUM_APP_PATH) = 'app'

/Users/andras/Sites/s3.kende.dev/webroot :
this doesn't works :
basename(LITHIUM_APP_PATH) = 's3.kende.dev' probably the dots are causing issues with session.name not saving etc...

This was confusing as i was working while having app folder :)

I figured to set the session.name as below which works great:

Session::config(array(
//	'cookie' => array('adapter' => 'Cookie'),
'default' => array('adapter' => 'Php', 'session.name' => 'shop')
));

Wondering if the $config['session.name'] should be changed to alphanumeric..

Thank you!!