当前位置: 首页 > 图文教程 > 网络编程 > ASP.NET > discuz nt的退出实现代码

ASP.NET
Web服务器控件:LinkButton控件
Web服务器控件:ListBox控件
Web服务器控件:ListItem控件
Web服务器控件:Literal控件
Web服务器控件:Panel控件
Web服务器控件:PlaceHolder控件
Web服务器控件:RadioButton控件
Web服务器控件:RadioButtonList控件
Web服务器控件:BulletedList控件
Web服务器控件:Style控件
Web服务器控件:Table控件
Web服务器控件:TableCell控件
Web服务器控件:TableRow控件
Web服务器控件:TextBox控件
Web服务器控件:XML控件
Validation服务器控件:CompareValidator控件
Validation服务器控件:CustomValidator控件
Validation服务器控件:RangeValidator控件
Validation服务器控件:RegularExpressionValidator控件
Validation服务器控件:RequiredFieldValidator控件

ASP.NET 中的 discuz nt的退出实现代码


出处:互联网   整理: 软晨网(RuanChen.com)   发布: 2009-09-13   浏览: 156 ::
收藏到网摘: n/a

自要点退出按钮的时候调用logout()就可以了 自要点退出按钮的时候调用logout()就可以了就是调用 http://192.168.1.13:8000/BBS/logout.aspx?userkey=763121ce
有个userkey,其实userkey就是你密码password.Substring(4, 8).Trim();位,只要你取一下你的cookie里面密码的4-8位就行了
代码参考:
复制代码 代码如下:

if(Request.Cookies["dnt"]["password"] != null)
{
string userkey = Request.Cookies["dnt"]["password"].ToString().Substring(4, 8);
Response.Redirect("/logout.aspx?userkey="+userkey);
}
"