Question

I have a PHP site where 20% of visitors do not have cookie support.

How can I offer both URL-based and Cookie-based Session Tracking depending on Cookie Support?

In other words, if the user accepts cookies, then we use cookie-based Session Tracking. But if they do not, then we switch to URL-based Session Tracking so that those users can still utilize the site.

I do not want to lose 20% of my users and I do not want a site that is 100% based on URL Session Tracking as that not only poses a security risk but also certain limitations that I don't want the other 80% of users to have to endure.

Était-ce utile?

La solution

PHP pretty much does the job for you automatically. It will append the session ID to all links if no cookie can be used. This should work out-of-the box with any default PHP installation.

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top