Re: doesn’t working for cookieless mode (although your forums suggests it is fixed)

  •  12-04-2007, 4:59 AM

    Re: doesn’t working for cookieless mode (although your forums suggests it is fixed)

    Hi,
     
    Here what I have done to test cuteEditor for cookieless mode
     
    1. Create New Web Site (in VS 2005) i.e my web name is , CuteEditor6Net2 (which is my VirDir for this web) 
     
    2. so now we have project with just web.config (if no web.config created then u can add new item as web.config)
     
    3. downlaod cuteEditor 6.0 from this cutesoft.net (obviously)
     
    4. copy all the files and folders from Framework 2.0 directory of this downloaded cuteEditor 6.0 and peast it in ur web site project (CuteEditor6Net2)which you created in step 1.
     
    5. add new Item in ur project as Web Form give name and select language (for me its UserLogon which will create UserLogon.aspx and UserLogon.aspx.cs as i m useing c# for my business logic) , which will be directly in root of the virDir same level as web.config
     
    6. open ur UserLogon.aspx file and add LogIn control

    <asp:Login ID="Login1" runat="server" OnAuthenticate="OnUserAuthenticate">

    </asp:Login>


    7. in UserLogon.aspx.cs file create OnUserAuthenticate () function / event whatever u call it. I did it as follows as i m just createing dummy athentication which will make all username and password authenticate, this is put in place as we want to test cookieless so this authentication is must
     

    protected void OnUserAuthenticate(object sender, AuthenticateEventArgs e)

    {

    e.Authenticated = true;

    }

    8. open web.config and add the following code under <system.web></system.web> to test cookieless with authentication.

     

    <authentication mode="Forms">

    <forms cookieless="UseUri" defaultUrl="/cs/default.aspx" loginUrl="UserLogon.aspx">

    </forms>

    </authentication>

    <authorization>

    <deny users="?"/>

    </authorization>

    9. Build the Web Site Or Rebuild Web Site
     
    10. access web for cs/default.aspx (which will load cuteEditor6.0) page with : http://localhost/cuteeditor6net2/cs/default.aspx which will ask for username n password , with the help of UserLogon.aspx (created by step 5,6,7,8) , screen will be as follows,
     
     
    and as u can see cos its cookieless, url has ReturnUrl=?ReturnUrl=%2fcuteeditor6net2%2fcs%2fdefault.aspx in screen shot above.
     
    11. give any username and password and it will show u unloaded cuteEditor cs/default.aspx
     
     
     
    Hope my hard work of this reply will help you to create this error and i also hope that you will give some tip to resolve it.
     
    with regards,
     
     
     
View Complete Thread