HttpCookie cookie;
cookie = FormsAuthentication.GetAuthCookie(W3Account, isRemberMe);
if (isRemberMe)
{
cookie.Expires = System.DateTime.Now.AddDays();
}
HttpContext.Current.Response.Cookies.Add(cookie);
string targetUrl;
targetUrl = FormsAuthentication.GetRedirectUrl(W3Account, isRemberMe);
HttpContext.Current.Response.Redirect(targetUrl);
相关文章
- 10-26【F5授权服务中心课程】F5 APM 登录会话管理(一)
- 10-26SpringBoot整合Shiro搭建登录注册认证授权权限项目模板
- 10-26H5微信授权登录
- 10-26微信小程序实现登录授权,并将获取到的用户授权信息存储到数据库中
- 10-26使用Spring Security登录认证,通过Oauth2.0开发第三方授授权访问资源项目详解
- 10-26用户登录和授权(二)springmvc+security实现
- 10-26App支付宝登录授权
- 10-26使用 python 编写一个授权登录验证的模块
- 10-26微信公众平台网页登录授权多次重定向跳转,导致code使用多次问题
- 10-26asp.net MVC中如何用Membership类和自定义的数据库进行登录验证