authentication and session issues with resources

Ask a Question related to ASP.NET Security, Design and Development.

  1. #1

    Default authentication and session issues with resources

    Hi,
    I have a webforms application which uses Forms Authentication.
    There are two webforms, mainform.aspx which retrieves data from a data.aspx
    webpage(the data.aspx page is set via a property on a control on
    mainform.aspx). The data.aspx serializes an xml file, which is used by the
    mainform.aspx.

    When i set the data.aspx as the start page and run the application, it
    displays the xml file correctly, but when it is set as a property, it doesnt
    seem to be authenticated and does not have the current session information.
    How can i make it get authenticated.
    Thanks
    Ramadass


    Ramadass Guest

  2. Similar Questions and Discussions

    1. PHP Session Issues -
      Hello, I have two identical sites hosted with two different ISPs; one has login/logout issues, the other does not. The only difference is there...
    2. Sharepoint (WSS) authentication issues in code/web service
      I'm working with a client that has Windows Server 2003, WSS, accessed through a custom application. In this application, we need to attach files to...
    3. issues mixing integrated Windows authentication and anonymous on same application
      I'm having issues mixing integrated Windows authentication and anonymous access on same IIS app. Basically, any post back event fails (Forms...
    4. Restrict access to resources like .doc, .ppt etc in .net forms authentication application
      Hi, We are developing a .NET app which has forms authentication. When the user types in the direct URL which is an aspx page, he will be thrown...
    5. Forms Authentication- Browser / service Pack issues?
      I have multiple machines, some with 2000, some with XP, another with 2003 server. The problem I am having is that on some machines the re-direction...
  3. #2

    Default Re: authentication and session issues with resources

    Hi Ramadass
    > I have a webforms application which uses Forms Authentication.
    > There are two webforms, mainform.aspx which retrieves data from a
    > data.aspx
    Why don't you let mainform.aspx get the data itself? or by using a
    "ResourceAccessLayer"?
    > webpage(the data.aspx page is set via a property on a control on
    > mainform.aspx). The data.aspx serializes an xml file, which is used by the
    > mainform.aspx.
    >
    > When i set the data.aspx as the start page and run the application, it
    > displays the xml file correctly, but when it is set as a property, it
    > doesnt
    > seem to be authenticated and does not have the current session
    > information.
    YOU must be authenticated or do you mean you let mainform.aspx read th
    content of
    data.aspx by using a WebRequest - if so you should try WebServices.

    --
    Daniel Fisher(lennybacon)
    MCP ASP.NET C#
    Blog: [url]http://www.lennybacon.com/[/url]


    Daniel Fisher\(lennybacon\) Guest

  4. #3

    Default Re: authentication and session issues with resources

    Sorry i wasnt very clear with my first post. I have a WebControl on the page
    (mainform.aspx) which accesses the data.aspx to retrieve XML content from
    it. The data.aspx serializes the xml data. The control creates a web request
    to the data.aspx. It turned out that in the webrequest that i created, i was
    not forwarding the credentials and therefore data.aspx was trying to
    redirect to a login page.
    I temporarily solved the problem by serializing the XML file generated by
    the aspx to temp directory, but it would be nice if i could formulate my
    webrequest to forward the right credentials and the session to the aspx
    page.
    Thanks
    Ramadass
    "Daniel Fisher(lennybacon)" <info@(removethis)lennybacon.com> wrote in
    message news:u3cN2ct3EHA.1264@TK2MSFTNGP12.phx.gbl...
    > Hi Ramadass
    >
    > > I have a webforms application which uses Forms Authentication.
    > > There are two webforms, mainform.aspx which retrieves data from a
    > > data.aspx
    > Why don't you let mainform.aspx get the data itself? or by using a
    > "ResourceAccessLayer"?
    >
    > > webpage(the data.aspx page is set via a property on a control on
    > > mainform.aspx). The data.aspx serializes an xml file, which is used by
    the
    > > mainform.aspx.
    > >
    > > When i set the data.aspx as the start page and run the application, it
    > > displays the xml file correctly, but when it is set as a property, it
    > > doesnt
    > > seem to be authenticated and does not have the current session
    > > information.
    > YOU must be authenticated or do you mean you let mainform.aspx read th
    > content of
    > data.aspx by using a WebRequest - if so you should try WebServices.
    >
    > --
    > Daniel Fisher(lennybacon)
    > MCP ASP.NET C#
    > Blog: [url]http://www.lennybacon.com/[/url]
    >
    >

    Ramadass Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139