加密网站中的网址 [英] Encrypt url in webiste

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

问题描述

当我将生成的URL复制到另一个用户显示的浏览器中登录后,我遇到了问题,因此当我要在另一个浏览器中复制URL时,我该如何加密该URL,它不应显示为已记录在.我该怎么做.
谢谢.

I have facing problem when i do after LogIn the generated URL copy into another browser a user show logged in.So that how can i encrypted this URL when i am going to copy URL in another browser it shouldn''t show logged in. how can i do that.
Thanks.

推荐答案

我将登录生成的URL复制到另一个浏览器中时遇到了问题,用户显示已登录
I have facing problem when i do after LogIn the generated URL copy into another browser a user show logged in


那是因为用户已登录.会话cookie是按浏览器存储的(通常),因此同一浏览器的另一个窗口将与他们登录的窗口共享会话.与URL的加密或其他无关.

如果您确实尝试过,则可以停止使用多个窗口的用户,甚至可以阻止他们从不同的浏览器或不同的计算机登录两次.但是,在我向您提供任何有关信息之前,您为什么要阻止用户同时查看您的网站的两个视图?通常,这是懒惰编码的标志,并且会导致烦人的网站,因此最好对您的网站进行精心设计,使两个窗口都不会给您造成麻烦.


That''s because the user is logged in. Session cookies are stored per browser (generally) and therefore another window of the same browser will share the session with the one in which they logged in. This is nothing to do with encryption or otherwise of the URL.

It is possible to stop a user using multiple windows – and even to stop them logging in twice from different browsers or different machines, if you really try. But before I give you any information about that, why do you want to prevent the user having two views of your site up at once? Generally that is a sign of lazy coding and leads to annoying websites and it is much better to craft your site such that two windows does not cause you a problem.


这就是我的理解,
1.)您登录到您的网站.
2.)复制该网址,然后将其粘贴到另一个浏览器中.
3.)现在,新密码显示您已经登录.对吗?
杜德(Dude),在这种情况下,您无需加密url或其他任何内容. (如果我不是真的很想念的话).
网站显示您已经登录的原因可能有很多:
1.)您可能正在使用请求参数,该参数表示您已登录.
2.)请求参数,其中包含用户名和Web中的一些(不正确)逻辑,用于检查用户是否已经登录.(从diff会话中获取状态?)
您确实需要向我们提供更多信息以帮助您.
This is what I understood,
1.) You log into you website.
2.) Copy the url, and paste it in another browser.
3.) Now, the new one shows that you have already logged in. Right?
Dude, you don''t need to encrpyt the url or for that matter anything in this case. (if, I am not really missing something).
There could be many reasons why the website shows that you are already logged in:
1.) you might be using request parameter which says that you are logged in.
2.) a request parameter which contains a user name, and some (incorrect) logic in web which checks if the user is laready logged in. (Picking up status from diff session?)
You really need to give us more info to help you.


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

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