欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  IT编程

this connector is disabled错误的解决方法

程序员文章站 2023-08-23 19:24:10
复制代码 代码如下:private bool checkauthentication() { // warning : do not simply return "true...
复制代码 代码如下:

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;
}