scottybwoy Posted June 12, 2008 Share Posted June 12, 2008 Quick easy question, or maybe 2 if I'm allowed. What is the php.ini directive I need to change to stop session id being posted in the url? Also if I type http://localhost/ it displays the files not index.php, what should I put in .htaccess file to stop that. Thanks Quote Link to comment Share on other sites More sharing options...
wildteen88 Posted June 12, 2008 Share Posted June 12, 2008 What is the php.ini directive I need to change to stop session id being posted in the url? Set session.use_trans_sid to 0, eg: session.use_trans_sid = 0 and make sure session.use_only_cookies is set to true. You may have to remove the semi-colon in front of the above lines in order for PHP read the changes. Also if I type http://localhost/ it displays the files not index.php, what should I put in .htaccess file to stop that. Thanks Add index.php to the DirectoryIndex directive within your httpd.conf file (if you have access it). Or for .htaccess then use DirectoryIndex +index.php Make sure you restart Apache after making changes to the httpd.conf or php.ini Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.