asp.net 如何只在论坛记住用户?(高分请教) ( 积分: 100 )

W

wsqs

Unregistered / Unconfirmed
GUEST, unregistred user!
我用的是FORMS自定义认证:
mycookie.Expires = DateTime.Now.AddYears(1)
Response.Redirect(FormsAuthen
tication.GetRedirectUrl(usrname, True))
这样设置后整的网站都自动记住了用户,但如果只在论坛记住用户名和密码,而在其它版区不用记住怎么办?
 
你漏了这一行:
mycookie.Expires = DateTime.Now.AddYears(1)
Response.Cookies.Add(mycookie);
/////你漏了这一行

Response.Redirect(FormsAuthen
tication.GetRedirectUrl(usrname, True))
 

Similar threads

S
回复
0
查看
3K
SUNSTONE的Delphi笔记
S
S
回复
0
查看
2K
SUNSTONE的Delphi笔记
S
D
回复
0
查看
2K
DelphiTeacher的专栏
D
D
回复
0
查看
891
DelphiTeacher的专栏
D
顶部