需要 Web 应用程序设置方面的帮助

发布于 2024-08-11 16:07:01 字数 1432 浏览 4 评论 0原文

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

圈圈圆圆圈圈 2024-08-18 16:07:01

第一个问题是处理数据库并发性,请参阅 this博客文章 以获得很好的解释。

两个并不是真正的问题,因为他只需从家用计算机登录并创建一个新会话即可。大多数网络应用程序支持多个相同的用户会话。如果这不是您想要的行为,那么您必须做一些工作。如果这是所需的行为,则不会。

The first problem is to do with dealing with database concurrency, see this blog post for a good explanation.

Two isn't really a problem, as he will simply login from his home computer and create a new session. Most web apps support multiple same user sessions. If that's not the behaviour you want, you have to do some work. Not if that is the desired behaviour.

瞄了个咪的 2024-08-18 16:07:01

问题_1:除非有一种锁定方法来编辑数据(当您读取数据时,数据会被锁定,直到您完成为止,没有人可以编辑,在这种情况下,其他当我们的人回来并更新值(假设当前屏幕上的所有值都将是)时,管理员将无法编辑(当我们的人在喝咖啡休息时)当点击这个应用程序上的更新时被覆盖)没有理由你所说的值不应该是2。

尽管如此,我怀疑:

  1. 我的答案没有任何意义 - 我是试图尽我所能地解释你的问题,但很可能 smt 在翻译中迷失了方向。
  2. 面试官希望您谈谈有关茶歇期间会话超时的问题

Prob_2:这是网络应用程序的标准问题。在 asp.net 中,有很多方法可以利用 global.asax 检查给定用户是否已经登录。这是教程,其中包含所有答案 - 让自己崩溃:)

Prob_1: Unless there is a lock-in approach to editing the data (the data is locked when you read it and untill you're done no-one can edit, in that case the other admins wouldn't have been able to edit while our guy was on his coffee-break) when the guy comes back and updates the values (assuming that all the values currently on screen will be overridden when click update on this app) there's no reason why the value you're talking about should not be 2.

Nevertheless, said so I suspect that:

  1. my answer doesn't make any sense - I am trying to interpret your question to my best but there's good chances smt is getting lost in translation.
  2. the interviewers wanted you to say something about the session timeout which expires during the coffee-break

Prob_2: this is a standard problem of web-apps. In asp.net there's plenty of ways of checking if a given user is already logged in leveraging global.asax. Here's a tutorial with all the answers - knock yourself out :)

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文