I have come to an impass. I have scoured the forum for any clues and found none.
I have the browser within FCKeditor working, but only if I hard code the CheckAuthentication() return value to true which is not secure. I have tried other permutations gleaned from the forum but none of them seem to return true and I do not know C#. Please see the code...
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 HttpContext.Current.User.Identity.IsAuthenticated; //return ( Session[ "IsAuthorized" ] != null && (bool)Session[ "IsAuthorized" ] == true ); //if (Session["IsAuthorized"] != null && (bool)Session["IsAuthorized"] == true) // return true; //else // return false; // ... where Session[ "IsAuthorized" ] is set to "true" as soon as the // user logs in your system. return true; }
I would perfer the HttpContext version to work and return true in the CheckAuthentication() once the user has logged on. I know that both the session 'IsAuthorized' and 'HttpContext.Current.User.Identity.IsAuthenticated' are returning true as I have tested them on the page.
Any help would be appreciated.
NMC