Forum Moderators: phranque

Message Too Old, No Replies

Condition for Robots

php_value session.use_trans_sid 0

         

wizpl

9:12 pm on Nov 14, 2006 (gmt 0)

10+ Year Member



php_value session.use_trans_sid 0

this line in .htaccess prevents automatic adding session ID to links when cookies are not used.

Is it possible to use it only for robots?
Is there some conditional statement that I could use?

thanks for any help.

coopster

9:50 pm on Nov 20, 2006 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



No, not to the best of my knowledge. This particular PHP directive is of type
PHP_INI_PERDIR
which means the entry can be set in php.ini, .htaccess or httpd.conf. Setting it in any of those areas is a setting per file/directory/location/host, not per user-agent.