【发布时间】:2014-02-08 14:33:42
【问题描述】:
我使用post method 通过我的门户打开不同的网站,如下所示:
在我的门户主页中:
<form method="post" target="_blank" action="">
<input id="Hdn_r" name="Hdn" type="hidden" value="55622">
.....
</form>
然后在any site opened through the portal 的主页中进行以下检查:
var hr = HttpContext.Current.Request.UrlReferrer;
if (hr != null && !string.IsNullOrEmpty(hr.AbsolutePath))
{
if (Request.UrlReferrer.AbsolutePath.Contains("Portal"))
{
if (Request.Form["Hdn_r"] != null && !string.IsNullOrEmpty(Request.Form["Hdn_r"].ToString())
&& Request.Form["Hdn_a"] != null && !string.IsNullOrEmpty(Request.Form["Hdn_a"].ToString()) &&
Request.Form["Hdn_b"] != null && !string.IsNullOrEmpty(Request.Form["Hdn_b"].ToString()) &&
Request.Form["Hdn_c"] != null && !string.IsNullOrEmpty(Request.Form["Hdn_c"].ToString())
)
{
Session["emp_num"]= int.Parse(Request.Form["Hdn_r"].ToString());
//...........
我的问题是:
如何在我的门户中一键退出所有打开的网站?
假设我通过我的门户打开了三个网站,我想在我注销时(在门户中)从所有打开的应用程序中注销我?
注意:门户中不同的网站发布在不同的服务器上。
【问题讨论】:
标签: asp.net security post portal