{"id":91,"date":"2005-01-20T09:04:54","date_gmt":"2005-01-20T09:04:54","guid":{"rendered":"http:\/\/dev.gregbueno.com\/wp\/sakufu\/2005\/01\/20\/get_around_phps\/"},"modified":"2005-01-20T09:04:54","modified_gmt":"2005-01-20T09:04:54","slug":"get_around_phps","status":"publish","type":"post","link":"https:\/\/gregbueno.com\/sakufu\/2005\/01\/20\/get_around_phps\/","title":{"rendered":"Get around PHPSESSID on Dreamhost"},"content":{"rendered":"<p><a href=\"http:\/\/www.dreamhost.com\/\">Dreamhost<\/a> sets the annoying PHP configuration value <tt>session.use_trans_sid<\/tt> to true by default. That means the first time you visit a site hosted on Dreamhost using PHP sessions, the session ID is appended to the links in your page as a query string.<\/p>\n<p>Not only does this make URLs ugly as hell, but it makes me uneasy thinking a user&#8217;s session ID &#8212; which is used to store information usually handled by cookies &#8212; is plastered all over a page.<\/p>\n<p>Since I can&#8217;t edit Dreamhost&#8217;s <tt>php.ini<\/tt> file, I have to handle the configuration on my end. I run PHP as a CGI, so using <tt>ini_set<\/tt> to configure <tt>session.use_trans_sid<\/tt> or editing <tt>.htaccess<\/tt> won&#8217;t work.<\/p>\n<p>But <a href=\"http:\/\/martin.f2o.org\/php\/session\">this very helpful article<\/a> suggests using <tt>ini_set(\"url_rewriter.tags\",\"\")<\/tt> instead. Well, it works! No more ugly URLs!<\/p>\n<p>Although I should probably be proactive and e-mail Dreamhost support to tell to turn the damn configuration value off.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I should probably be proactive and e-mail Dreamhost support to tell to turn the damn configuration value off.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[6],"tags":[],"class_list":["post-91","post","type-post","status-publish","format-standard","hentry","category-technophilia-professional"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p4Bkjq-1t","_links":{"self":[{"href":"https:\/\/gregbueno.com\/sakufu\/wp-json\/wp\/v2\/posts\/91","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/gregbueno.com\/sakufu\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/gregbueno.com\/sakufu\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/gregbueno.com\/sakufu\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/gregbueno.com\/sakufu\/wp-json\/wp\/v2\/comments?post=91"}],"version-history":[{"count":0,"href":"https:\/\/gregbueno.com\/sakufu\/wp-json\/wp\/v2\/posts\/91\/revisions"}],"wp:attachment":[{"href":"https:\/\/gregbueno.com\/sakufu\/wp-json\/wp\/v2\/media?parent=91"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/gregbueno.com\/sakufu\/wp-json\/wp\/v2\/categories?post=91"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/gregbueno.com\/sakufu\/wp-json\/wp\/v2\/tags?post=91"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}