Jump to content

php.ini variable


Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.