Forum Moderators: coopster
ini_set("session.use_only_cookies")
to force the server to use only cookies.
When i look at my phpinfo() I see the following set:
Directive Local Global
session.use_cookies On On
session.use_only_cookies On Off
session.use_trans_sid Off Off
My site is pretty new. But Googlebot visits reasonably often. Because when I change my title. The next day or two days later it is changed in de SERPS. Only my index page is indexed. Now I'd like to know if the values are set correct so google can index my page completely or is there still a possibility that the start of the session is a problem for googlebot.
ini_set('session.use_only_cookies', 1);
ini_set() needs two arguments: the thing that's being set, and the value with which it should be set. 1 usually means on; 0 usually means off. Suprised actually that this didn't throw an error.
ini_set() in php manual [be2.php.net]
If i disable all my cookies. The sessionid isn't put after the url. So i have to conclude that this is ok?
A couple other things to check:
1) Proper headers [webmasterworld.com]
2) Valid HTML [validator.w3.org]
Note for others - get the firefox webdev extension so you don't have to use on-line services, it's right there for you under 'info'.