开发者

How to save user setting on server side when cookies are off [duplicate]

开发者 https://www.devze.com 2023-04-03 11:52 出处:网络
This question already has answers here: Closed 11 years ago. Possible Duplicate: PHP session without cookies
This question already has answers here: Closed 11 years ago.

Possible Duplicate:

PHP session without cookies

开发者_开发问答Is there some practice to solve situation when user disable cookies and I need to store situation in PHP/MySQL server side and to disable cookie-based features?


With php you can put automaticly the session id in the url

http://www.php.net/manual/en/session.configuration.php#ini.session.use-trans-sid

But this might be hard to use with dynamic link (like javascript).

You can link the settings with the IP+Browser...

HTTP is stateless, if your user want to use your site as an application (= with a state) they must enable cookies.

0

精彩评论

暂无评论...
验证码 换一张
取 消