I need to authenticate a flash client. Flash is limited in what I can programmatically set in terms of HTTP headers etc.
I planned to pass in the ASP.NET session id into the flash control. The flash control would then make a request to a .NET webservice. I need to pass the sessionid from the flash client to the server. I then need to check that the session is valid on the server.
My idea was to create an HTTP module which would look for the sessionid (passed as part of the SOAP request, or otherwise). It would then ADD an HTTP header to the request "ASP_sessionid" or whatever, with the sessionid in place. Subsequently the SessionStateModule
woule read this value and honour the request in the usual way.
My efforts fell short upon discovery that the Request.Headers collection is read-only. Is there a way to modify the request in an HTTP module, or am I attempting the impossible!?
Another option may be to create a completely new request, based on the original and discard the original request. Is this possible?
Member
10 Points
39 Posts
Modify Request Headers with HTTP module?
May 12, 2006 10:25 AM|geedubb|LINK
I need to authenticate a flash client. Flash is limited in what I can programmatically set in terms of HTTP headers etc.
I planned to pass in the ASP.NET session id into the flash control. The flash control would then make a request to a .NET webservice. I need to pass the sessionid from the flash client to the server. I then need to check that the session is valid on the server.
My idea was to create an HTTP module which would look for the sessionid (passed as part of the SOAP request, or otherwise). It would then ADD an HTTP header to the request "ASP_sessionid" or whatever, with the sessionid in place. Subsequently the SessionStateModule woule read this value and honour the request in the usual way.
My efforts fell short upon discovery that the Request.Headers collection is read-only. Is there a way to modify the request in an HTTP module, or am I attempting the impossible!?
Another option may be to create a completely new request, based on the original and discard the original request. Is this possible?
Thanks in advance
Member
30 Points
805 Posts
Re: Modify Request Headers with HTTP module?
May 14, 2006 10:03 PM|zhuhua1006|LINK
Member
10 Points
39 Posts
Re: Modify Request Headers with HTTP module?
May 16, 2006 06:58 AM|geedubb|LINK
Cheers
Member
321 Points
566 Posts
Re: Modify Request Headers with HTTP module?
May 30, 2006 02:21 PM|jminond|LINK
http://www.Jonavi.com
http://www.jonavi.com/Default.aspx?pageID=21
http://RainbowBeta.com
http://community.rainbowportal.net/blogs/jonathans_rainbow_blog/default.aspx
http://dotnetslackers.com/community/blogs/jminond/default.aspx