{"id":315,"date":"2011-03-11T10:34:51","date_gmt":"2011-03-10T23:34:51","guid":{"rendered":"http:\/\/howden.net.au\/thowden\/?p=315"},"modified":"2011-03-11T10:34:51","modified_gmt":"2011-03-10T23:34:51","slug":"sme-server-8-and-session-use_trans_sid","status":"publish","type":"post","link":"https:\/\/howden.net.au\/thowden\/2011\/03\/sme-server-8-and-session-use_trans_sid\/","title":{"rendered":"SME Server 8 and session.use_trans_sid"},"content":{"rendered":"<p>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.<\/p>\n<p>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.<\/p>\n<p>[php]<br \/>\n# grep session \/etc\/e-smith\/templates\/etc\/php.ini\/*<br \/>\nreturns<br \/>\n\/etc\/e-smith\/templates\/etc\/php.ini\/80ModuleSettings16Session:session.use_trans_sid                  = 1<br \/>\n[\/php]<\/p>\n<p>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<\/p>\n<p>[php]<br \/>\n# cp \/etc\/e-smith\/templates\/etc\/php.ini\/80ModuleSettings16Session \/etc\/e-smith\/templates-custom\/etc\/php.ini\/<br \/>\n[\/php]<\/p>\n<p>I like using mcedit on my linux systems but you might prefer vi or something else.<\/p>\n<p>[php]<br \/>\n#mcedit \/etc\/e-smith\/templates-custom\/etc\/php.ini\/80ModuleSettings16Session<br \/>\n[\/php]<br \/>\nand change the setting for session.use_trans_sid  from 1 to 0 and save the file.<\/p>\n<p>Then rebuild the php.ini and restart apache.<br \/>\n[php]<br \/>\n# \/sbin\/e-smith\/expand-template \/etc\/php.ini<br \/>\n# apachectl graceful<br \/>\n[\/php]<\/p>\n<p>Of course these notes pretty much apply to any SME Server template snippet to adjust the server settings permanently so that reboots don&#8217;t lose your changes.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>sme server session.use_trans_sid oscmax oscommerce php.ini<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[12,16],"tags":[],"class_list":["post-315","post","type-post","status-publish","format-standard","hentry","category-oscommerce-oscmax","category-sme-server"],"_links":{"self":[{"href":"https:\/\/howden.net.au\/thowden\/wp-json\/wp\/v2\/posts\/315","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/howden.net.au\/thowden\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/howden.net.au\/thowden\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/howden.net.au\/thowden\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/howden.net.au\/thowden\/wp-json\/wp\/v2\/comments?post=315"}],"version-history":[{"count":0,"href":"https:\/\/howden.net.au\/thowden\/wp-json\/wp\/v2\/posts\/315\/revisions"}],"wp:attachment":[{"href":"https:\/\/howden.net.au\/thowden\/wp-json\/wp\/v2\/media?parent=315"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/howden.net.au\/thowden\/wp-json\/wp\/v2\/categories?post=315"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/howden.net.au\/thowden\/wp-json\/wp\/v2\/tags?post=315"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}