dtby67541 2012-06-26 08:25
浏览 113
已采纳

可选的基于URL的授权,以避免登录cookie

Basically, what I want is to use an alternative to the login cookies as they technically can be guessed (there are ways to counter this, but why not eliminate the threat completely)?

What I'm thinking of is a system with a big do not use on public computers warning that would allow users to auto-login not with a cookie, but by following an URL such as /login/email@example.com/myPassword.

What I want to ask is, should I bother creating such a system or would it make even more security flaws? On one hand, the cookie-based one can simply request the password again if, for example, the IP or user agent don't match, on the other, I can save quite a lot of DB space by not having to store cookie names.

  • 写回答

2条回答 默认 最新

  • duanditang2916 2012-06-26 08:28
    关注

    With your approach, the user's password is now exposed: in their browser history, in your server logs, to any network sniffing tool, et cetera. Passwords of users should not be in the URL. So no, it's not a good idea.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?

悬赏问题

  • ¥15 求差集那个函数有问题,有无佬可以解决
  • ¥15 【提问】基于Invest的水源涵养
  • ¥20 微信网友居然可以通过vx号找到我绑的手机号
  • ¥15 寻一个支付宝扫码远程授权登录的软件助手app
  • ¥15 解riccati方程组
  • ¥15 display:none;样式在嵌套结构中的已设置了display样式的元素上不起作用?
  • ¥15 使用rabbitMQ 消息队列作为url源进行多线程爬取时,总有几个url没有处理的问题。
  • ¥15 Ubuntu在安装序列比对软件STAR时出现报错如何解决
  • ¥50 树莓派安卓APK系统签名
  • ¥65 汇编语言除法溢出问题