如何在后台打开新的URL [英] How to open a new URL in background

查看:88
本文介绍了如何在后台打开新的URL的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个2个Web应用程序。因此,如果用户登录,那么他将被重定向到webapp1并将被重定向到home.aspx。



在webapp1 home.aspx上,我必须调用webapp2 home.aspx在backgorund中,用户会话也将在那里启动。用户不会知道他被重定向到webapp2 home.aspx。



如何做到这一点?



我的一位同事告诉我,可以使用批处理文件。只需在那里提及URL并使用Process执行它。



I have a 2 web application. So if user login then he will be redirected to webapp1 and will be redirected to home.aspx.

On webapp1 home.aspx, i have to call webapp2 home.aspx in backgorund so that user session will be started there also. User will not be get to know that he is redirected to webapp2 home.aspx.

How to do that?

One of my colleague told me that it will be possible using batch file. Just mention URL there and execute it using Process.

Process process = new Process();
process.StartInfo.FileName = ConfigurationManager.AppSettings["BatchFilePath"];
process.StartInfo.UseShellExecute = false;
process.StartInfo.RedirectStandardInput = true;
process.StartInfo.RedirectStandardOutput = true;

process.StartInfo.CreateNoWindow = true;

process.Start();
//process.WaitForExit();
process.Close();





但它仍然为webapp2 home.aspx打开一个新窗口。



任何建议都将受到赞赏。



But still it is opening a new window for the webapp2 home.aspx.

Any suggestions will be appreciated.

推荐答案

这应该是你要找的:单点登录 [ ^ ]



问候..
This should be what you are looking for :Single sign on[^]

Regards..


这我的帮助你





在asp.net中使用Cookie进行单点登录(SSO) [ ^ ]



跨域ASP.NET应用程序的单点登录(SSO):第二部分 - 实现 [ ^ ]
This My Help you


Single Sign on (SSO) Using Cookie in asp.net[^]

Single Sign On (SSO) for cross-domain ASP.NET applications: Part-II - The implementation[^]


这篇关于如何在后台打开新的URL的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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