在禁用Cookie时,会话是否工作? [英] do sessions work when cookies are disabled?

查看:173
本文介绍了在禁用Cookie时,会话是否工作?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果用户在浏览器中禁用了Cookie,会话是否工作?因为我知道当我创建会话时,在客户端有一个会话cookie。

解决方案

会话ID可以附加到URL



查看此处



编辑以回答其他问题如果你能帮助它,Cookie是首选方法。您应阅读维基百科文章,以便更好地了解。从文章中,如果你不读它:


将会话标识符传输为
HTTP cookie更安全



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.

解决方案

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

这篇关于在禁用Cookie时,会话是否工作?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆