Forum Moderators: coopster
Users can login at my site, but I want to avoid session ID's in the URL's due optimizing for search engines.
I already tried
ini_set("session.use_only_cookies", "on");
ini_set("session.use_only_cookies", "1");
ini_set("session.use_only_cookies", 1);
php_flag session.use_only_cookies on
Thank you all very much in advance!
Best regards,
Hannes.
as written in the online manual:
session.use_only_cookies specifies whether the module will only use cookies to store the session id on the client side. Defaults to 0 (disabled, for backward compatibility). Enabling this setting prevents attacks involved passing session ids in URLs. This setting was added in PHP 4.3.0.
So you canīt modify this setting with your PHP version.
See [php.net...] for further information.
Best,
Lars
I missed this little detail about the version somehow.
Currently I do not start the session when the reverse lookup of the IP matched to /google/, so this works quite fine, but it fails for other search engines.
Well, I think I must wait until my ISP upgrades the version to 4.3.0 ...
Thanks again!
All the best,
Hannes.