SME Server 8 and session.use_trans_sid

Downloaded the svn of osCmax to do some dev work and the first install screen advised that session.use_trans_sid was enabled and should not be.

After some quick research that simply suggested I add a rule to .htaccess, I went looking at the php.ini and how to turn it off permanently.

[php]
# grep session /etc/e-smith/templates/etc/php.ini/*
returns
/etc/e-smith/templates/etc/php.ini/80ModuleSettings16Session:session.use_trans_sid = 1
[/php]

Which tells me to copy the offending template section to the templates-custom area, set it to 0, and recompile the template for php.ini

[php]
# cp /etc/e-smith/templates/etc/php.ini/80ModuleSettings16Session /etc/e-smith/templates-custom/etc/php.ini/
[/php]

I like using mcedit on my linux systems but you might prefer vi or something else.

[php]
#mcedit /etc/e-smith/templates-custom/etc/php.ini/80ModuleSettings16Session
[/php]
and change the setting for session.use_trans_sid from 1 to 0 and save the file.

Then rebuild the php.ini and restart apache.
[php]
# /sbin/e-smith/expand-template /etc/php.ini
# apachectl graceful
[/php]

Of course these notes pretty much apply to any SME Server template snippet to adjust the server settings permanently so that reboots don’t lose your changes.

Leave a Reply

Your email address will not be published. Required fields are marked *