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 Link to comment https://forums.phpfreaks.com/topic/109862-phpini-variable/ 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 Link to comment https://forums.phpfreaks.com/topic/109862-phpini-variable/#findComment-564137 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.