隐藏网址中的会话ID [英] hide session id from url

查看:99
本文介绍了隐藏网址中的会话ID的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我如何隐藏url中的会话ID

我正在使用链接

链接打开时,URL显示用户ID(会话数据)

现在我希望它不会在url中显示会话ID

我将设置cokkieless = true,但仍在url

how i can hide session id from url

i am using a link

when link is open url shows userid (session data)

now i want that it will not show session id in url

i will set cokkieless=true but still it show session id in url

推荐答案

继续上述答案,

如果您在web.config文件中将cookielessless设置为false,并且仍在url中显示sessionid,则意味着浏览器已禁用cookie.检查浏览器设置并启用浏览器接受cookie.

如果浏览器禁用了cookie,则无法隐藏sessionid.

希望这能清除您的疑问.
In continuation to above answer,

If you have set cookieless to false in your web.config file and it is still showing the sessionid in url, it means the browser has cookies disabled. Check the browser setting and enable the browser to accept cookies.

There is no way to hide the sessionid if cookies are disabled for a browser.

Hope this clears your doubt.


如果cookielessless设置为true,则告诉asp.net它不能
将Cookie保存在用户的任何PC上,从而将会话ID存储在
网址.
如果将其设置为false,则将从URL和
中删除会话ID. 放在用户PC上的Cookie中.
因此将无cookie设置为false,以从url隐藏会话ID
if cookieless set to true, that tells asp.net that it cant
save cookies on any of the user''s pc, and so it stores the session id in the
url.
if you set it to false, the session id will be removed from the url and
placed inside a cookie on the users pc.
so set cookieless set to false , to hide session id from url



这篇关于隐藏网址中的会话ID的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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