this connector is disabled错误的解决方法
时间:2021-04-14 09:02:35|栏目:.NET代码|点击: 次
复制代码 代码如下:
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;
}
上一篇:如何使用C#读写锁ReaderWriterLockSlim
栏 目:.NET代码
本文标题:this connector is disabled错误的解决方法
本文地址:http://www.codeinn.net/misctech/100739.html






