通过复制和粘贴页面的url,我无需登录即可访问特定页面. [英] I am able to access a particular page, without logging in, just by copying and pasting the url of a page.

查看:143
本文介绍了通过复制和粘贴页面的url,我无需登录即可访问特定页面.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,先生,

在Web应用程序中
通过复制和粘贴页面的URL,我无需登录即可访问特定页面.


我刚登录一个标签,然后将该URL粘贴到新标签中,那时候我无需登录即可访问该页面.如何解决呢?
您能解释更多细节吗?

谢谢与问候

Ashika

Hello Sir,

In Web application
I am able to access a particular page, without logging in, just by copying and pasting the url of a page.


I was just logged in one one tab and after that paste that URL into new tab, That time i can access that page without login . How to solve this?
Could you please explain more detail?

Thanks & Regrds

Ashika

推荐答案

这可能是因为登录凭据存储在会话cookie中,该cookie在浏览器选项卡之间持续存在.如果您可以登录时粘贴URL,并且可以正常工作,则说明您有问题.实际上,它比问题更方便.
It''s probably because the login credentials are stored in a session cookie, which persists between browser tabs. If you can paste the URL when you''re not logged in, and it works, the you have a problem. As it is, it''s more of a convenience than a problem.


在登录期间.
将表的行ID插入到Session中,然后在每个页面加载检查会话中是否具有任何值.
如果为Null,则不会通过登录进入,因此请打印任何错误消息.!
During Login Time.
Insert the Row ID of table into Session and the on every page load check that is session is having any value or not.
if It is Null, its does not Came through login so print any error message.!


您需要做的就是放置授权.身份验证完成后,授权用户可以访问给定页面.

看这里:
ASP.NET身份验证和授权 [ MSDN:ASP.NET授权 [
All you need is to put Authorization in place. Once authentication is done, authorized users can access a given page.

look here:
ASP.NET authentication and authorization[^]
MSDN: ASP.NET Authorization[^]


这篇关于通过复制和粘贴页面的url,我无需登录即可访问特定页面.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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