如何从一个应用程序登录到另一个应用程序 [英] how to login from one application to another application
问题描述
我正在制作一个主应用程序,其中可以使用其他应用程序的链接。通过点击另一个应用程序链接,我可以直接访问其主页(其他应用程序登录页面应该进行身份验证,并且必须跳过他们的登录页面)
我应该如何approch以便它可以在asp.net和mvc4上工作..
我应该制作处理程序或模块和服务吗?
我已经通过sql server session provider在sql server中存储了会话值..
先谢谢你
I am making one master application in which other application''s link will be available. By clicking on that another application link, i can directly access its home page( other applications login page should be authenticate and their login page have to skipped)
How should i approch so that it can work on asp.net and mvc4 both ..
Should i make handler or module and service??
I already store session values in sql server via sql server session provider..
Thanks in Advance
推荐答案
我建议使用服务层和共享数据库,在每次登录和注销数据库时都会更新用户登录状态。另一项服务应该检查用户的当前状态,例如,如果用户关闭自己的网页或因连接问题而断开连接,服务应更新用户登录的最新状态。
I suggest to use a service layer and a shared Database which during each log in and log out the database is updated for user log in status.Another service should check the current status of the user,for instance,if user close his own web page or disconnect because of a connection problem,Service should update the latest status of user''s logging in.
这篇关于如何从一个应用程序登录到另一个应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!