Re: authentication and session issues with resources
From: Ramadass (anonymous_at_discussions.micorsoft.com)
Date: 12/10/04
- Next message: Joe Kaplan \(MVP - ADSI\): "Re: Impersonation in ASP.net"
- Previous message: Bunty: "Re: Impersonation in ASP.net"
- In reply to: Daniel Fisher\(lennybacon\): "Re: authentication and session issues with resources"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Fri, 10 Dec 2004 15:24:25 -0600
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: http://www.lennybacon.com/
>
>
- Next message: Joe Kaplan \(MVP - ADSI\): "Re: Impersonation in ASP.net"
- Previous message: Bunty: "Re: Impersonation in ASP.net"
- In reply to: Daniel Fisher\(lennybacon\): "Re: authentication and session issues with resources"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|
|