Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/ssis/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
.net FormsAuthentication.RedirectFromLoginPage重新加载页面_.net_Forms Authentication - Fatal编程技术网

.net FormsAuthentication.RedirectFromLoginPage重新加载页面

.net FormsAuthentication.RedirectFromLoginPage重新加载页面,.net,forms-authentication,.net,Forms Authentication,我使用的是.Net memebership系统,现在我还没有遇到任何实际问题。 我现在有一个覆盖,用户可以创建一个配置文件。创建概要文件时,我只想重定向到同一个页面,而不是默认页面或返回url,因为它不存在 我已尝试停止FormsAuthentication.RedirectFromLoginPage响应,但无效: FormsAuthentication.RedirectFromLoginPage(username, false); // End the redirect so it doe

我使用的是.Net memebership系统,现在我还没有遇到任何实际问题。 我现在有一个覆盖,用户可以创建一个配置文件。创建概要文件时,我只想重定向到同一个页面,而不是默认页面或返回url,因为它不存在

我已尝试停止FormsAuthentication.RedirectFromLoginPage响应,但无效:

 FormsAuthentication.RedirectFromLoginPage(username, false);
 // End the redirect so it doesnt redirect to default url (front-page)
 Response.End();
 Response.Redirect(Request.RawUrl);
有人知道如何解决这个问题吗?

用这个代替:

FormsAuthentication.SetAuthCookie(username, false);
Response.Redirect(Request.RawUrl);