如何在不登录的情况下将一个应用程序重定向到其 [英] How to redirect one application to other without login

查看:92
本文介绍了如何在不登录的情况下将一个应用程序重定向到其的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好



我有两个asp.net应用程序。在一个应用程序中,首先是登录屏幕,如果成功登录,则重定向到母版页内的另一个页面。当成功登录时,我使用了一些会话变量,我在主页中检查它是否会获得会话变量null然后它重定向到登录页面,并显示消息会话输出。这个应用程序我已经把服务器地址放入服务器我是打开这个。





我的客户端有另一个应用程序,我有一个登录页面但是当我要登录时我想重定向到没有登录的服务器应用程序页面,我想在我的客户端设置所有会话变量并通过地址重定向到该页面。





但是它总是打开登录页面并写下Session Out消息





是否有任何解决方案或其他工作方式..







谢谢..

hello

I have two asp.net application. In one application first is login screen and if successfully login then redirect to another page which is inside master page. When successfully login i have used some session variable which i am checking in master page if it will get session variable null then it redirecting to Login page with a message "Session Out".This application I have put in server with the server address i am opening this.


I have another application in my client side and I have a login page but when I will login I want to redirect to the server application page without login , I want to set all session variable in my client side and redirect to that page through address.


But it always opening the login page and write the message "Session Out"


Is there any solution or other way to work..



Thanks..

推荐答案

您可以使用asp.net会话状态服务器,并确保每个应用程序中的机器密钥相同,因为应用程序名称,应该导致共享会话。
You could use asp.net session state server, and ensure that the Machine Key is identical in each application, as is the application name, which should result in a shared session.


这篇关于如何在不登录的情况下将一个应用程序重定向到其的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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