Ask a Question related to ASP.NET Security, Design and Development.
-
Ramadass #1
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
-
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... -
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... -
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... -
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... -
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... -
Daniel Fisher\(lennybacon\) #2
Re: authentication and session issues with resources
Hi Ramadass
Why don't you let mainform.aspx get the data itself? or by using a> I have a webforms application which uses Forms Authentication.
> There are two webforms, mainform.aspx which retrieves data from a
> data.aspx
"ResourceAccessLayer"?
YOU must be authenticated or do you mean you let mainform.aspx read th> 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.
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
-
Ramadass #3
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...the> Hi Ramadass
>> Why don't you let mainform.aspx get the data itself? or by using a> > I have a webforms application which uses Forms Authentication.
> > There are two webforms, mainform.aspx which retrieves data from a
> > data.aspx
> "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> YOU must be authenticated or do you mean you let mainform.aspx read th> > 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.
> 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



Reply With Quote

