The issue with that is that it'll likely break existing PHP scripts/CMSs that change those settings, which may overwrite the session name setting you set in your custom script.

The easiest thing to do here would be to, rather than using mod_userdir and the subsequent monkeyrigging in this case, just use wildcard DNS (* IN A IpHere) and give each user their own subdomain/vhost, which largely resolves the cookie issue, provided the PHP scripts don't automatically set the session cookie domain to the root domain instead of the subdomain.

On 03/30/2012 07:45 AM, Sebastian Marsching wrote:
Am 30.03.2012 um 11:23 schrieb [email protected]:

Maybe its just because i slept poorly, but how could i implemant the last 
solution without having to add that function to each php-app/-file manually? I 
cant count on the users to do that.

You might want to have a look at the auto_prepend_file directive in php.ini 
(http://www.php.net/manual/en/ini.core.php#ini.auto-prepend-file).
Using this directive, you should be able to include a system-wide script, that 
will determine the user/path by inspecting the environment variables and then 
setting the session-name (or better path) accordingly.


_______________________________________________
suPHP mailing list
[email protected]
https://lists.marsching.com/mailman/listinfo/suphp

Reply via email to