为不同的用户创建相同的登录页面(Creating same login page for different users)

编程入门 行业动态 更新时间:2024-10-18 01:31:34
为不同的用户创建相同的登录页面(Creating same login page for different users)

我有一个网站上所有用户使用的登录页面。 但是,一旦他们登录,他们会转到不同的页面。

用户当前存储在数据库中的不同表中,我需要检查以查看应该导航到哪个页面。

这是否意味着我应该将所有这些用户添加到单个表中并指定用户类型?

我组织事情的最佳方式是什么?

I have one login page used by all users on the site. However, once they login, they go to different pages.

The users are currently stored in different tables in the database and I need to check to see which page I should navigate to.

Does this mean that I should add all these users to a single table and specify the kind of user?

What's the best way for me to organize things?

最满意答案

最好将所有用户放在一个表中,这样可以使维护更容易。 您可以让登录脚本读取用户类型,并将其指向正确的主页。

It would probably be best to keep all your users in one table, it will make things easier to maintain. You can have the login script read the user type, and direct them to the correct homepage.

更多推荐

本文发布于:2023-07-16 12:49:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1128622.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:页面   用户   Creating   users   page

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!