cahva;10888474 wrote:What I mean by virtual host is that if your domain is on a shared server and uses apache and each domain in that server are separated from each other in their own virtual host directives. In these virtual host's, your host can change settings invidually without changing the other domains settings on that server. So your host will only have to add couple of lines to your vhost:
php_value session.use_trans_sid 0
php_value session.use_only_cookies 1
It is quite strange that you cannot set those with ini_set unless they have set those settings with php_admin_value, which will mean that you cannot change them afterwards in any way. Those session settings are harmless(as a matter of fact they are more secure) and even default php.ini has those 2 settings configured by default the way you are just trying to have them.
BTW, it just came to my mind. Check your error log(hope you atleast can access these?). It can be that mod_rewrite is enabled but Options +FollowSymLinks is not allowed.
If they even dont give you access to mod_rewrite which is very handy to have, I would change host as soon as I could.
As for this code
php_value session.use_trans_sid 0
php_value session.use_only_cookies 1
My question was what file you meant. I guess you meant the .htaccess that I have on my virtual host in the hosting company. Actually I added the two lines of code you just told me to this .htaccess file but it did not make any difference. I still see the dynamic strring ?language=en or ?language=sp in the url.
As for the ini_set is concerned, well, sorry, it might be the long time I am spending on this but I now tested it again and it seems that the hosting server behaves as expected by changing the value of the variable session.use_trans_sid to 0 as implied by the following php code:
ini_set('session.use_trans_sid', 0);
echo ini_get("session.use_trans_sid") . "= use_trans_sid after";
After cleaning the cache of my browser as always and testing this code in the hosting server, the output from the echo sentence returned
0= use_trans_sid after
that is to say, that the change in the value of the variable was successful.
As for checking the log in my server I would like how I can do that. Another thing is I asked my hosting company to confirm me if they did not have mod_rewrite enabled and I just received an email from another employee different from the other time. This one told me in this email that the mod_rewrite is enabled. So, how can I check if Options +FollowSymLinks is allowed?
Thanks in advance