do sessions work when cookies are disabled?

天涯浪子 提交于 2020-01-14 19:01:35

问题


if the user has disabled cookies in the browser, do sessions work? cause i know there is a session cookie in the client when i create sessions.


回答1:


The session id can be appended to the URL, so, yes, they can.

Check out here

Edit to answer additional question

Cookies are the preferred method if you can help it. You should read the Wikipedia article to get a better understanding. From the article if you don't read it:

Transferring session identifiers as HTTP cookies is more secure



来源:https://stackoverflow.com/questions/2175138/do-sessions-work-when-cookies-are-disabled

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!