首页 > 开发 > .Net > 正文

this connector is disabled错误的解决方法

2020-04-24 22:03:47
字体:
来源:转载
供稿:网友
代码如下:
private bool CheckAuthentication()
{
// WARNING : DO NOT simply return "true". By doing so, you are allowing
// "anyone" to upload and list the files in your server. You must implement
// some kind of session validation here. Even something very simple as...
//
// return ( Session[ "IsAuthorized" ] != null && (bool)Session[ "IsAuthorized" ] == true );
//
// ... where Session[ "IsAuthorized" ] is set to "true" as soon as the
// user logs in your system.

return true;
}
发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表