Session("ImageGalleryPath")

  •  12-29-2005, 1:36 PM

    Session("ImageGalleryPath")

     In trying to get the the upload portion of the editor working I've run accross a problem.
     
    On line 15 of browse_Img.asp there is the following line:
    If InStr(Lcase(ImageGalleryPath),Lcase(trim(Session("ImageGalleryPath")))) <= 0 or Session("ImageGalleryPath") ="" then 

    This code is the logic that dictates weather or not to display the message : The area you are attempting to access is forbidden

    In looking at this: the problem appears that the Session("ImageGalleryPath") = "" In other words, the right side of the or clause is true, however, the left side is false. - the InStr returns 1.

    So, I commented out that section to see what would happen, and everything is working correctly, I can upload images and see them in the folder. However, instead of hacking up the CuteEditor code, I'd rather fix the Session problem. 

    Any ideas?

    Thanks.

     
View Complete Thread