日期:2014-05-17  浏览次数:20589 次

CKFinder 加入验证之后,无法上传文件,出现HTTP Error: status code 302. I/O Error: Error #2038. 错误
C# code
    public override 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 on your system.
        //return true;
    }



这是CKFinder自带的验证,我只是把:return (Session["IsAuthorized"] != null && (bool)Session["IsAuthorized"] == true);
的注释去年,并且在登录时,加入了:Session["IsAuthorized"]=true;

但是这样做之后,在CKFinder中进行上传、删除等等操作时,都会报错。
有用过的人吗?麻烦帮看看是什么问题。谢谢!

------解决方案--------------------
没用过 http://www.cnblogs.com/PocketZ/archive/2010/11/12/1875563.html
------解决方案--------------------
目录权限设置有问题么?