SilverlightShow: Cookies in Silverlight Web Requests Comments http://www.silverlightshow.net/ Silverlight articles, Silverlight tutorials, Silverlight videos, Silverlight samples SilverlightShow.net http://www.rssboard.org/rss-specification Argotic Syndication Framework 2008.0.2.0, http://www.codeplex.com/Argotic en-US estoychev@completit.com (Emil Stoychev) Re: Cookies in Silverlight Web Requests <h1 color="green">Hello</h1> http://www.silverlightshow.net/items/Cookies-in-Silverlight-Web-Requests.aspx#comment6470 AjaySaksena http://www.silverlightshow.net/items/Cookies-in-Silverlight-Web-Requests.aspx Wed, 31 Aug 2011 14:13:11 GMT RE: Cookies in Silverlight Web Requests <p>i'm pretty sure this is no longer true in silverlight 4 if you read <a href="http://msdn.microsoft.com/en-us/library/system.net.httpwebrequest(VS.95).aspx">http://msdn.microsoft.com/en-us/library/system.net.httpwebrequest(VS.95).aspx</a> you'll see a note about "for security reasons cookies are disabled by default".  however if you use the WebClient class, the cookies appear.</p> http://www.silverlightshow.net/items/Cookies-in-Silverlight-Web-Requests.aspx#comment4719 drdamour http://www.silverlightshow.net/items/Cookies-in-Silverlight-Web-Requests.aspx Thu, 21 Oct 2010 00:38:04 GMT RE: Cookies in Silverlight Web Requests <p>Hi,</p> <p>First of all, thanks for nice article. I have a little bit more complicated example...</p> <p>I have ASPX page where I run my authentication mechanism which calls a external service. I receive from this service a very long token. Now I have to configure somehow the FormAuthentication cookie (I use ASP.Net Forms Authentication WCF Service with custom Membership, Role and Profile providers) to inform my own Authentication Service about positive login. But this is not visible to my Silverlight application where I have again to login.....</p> <p>How I should create that FormAuthentication cookie in my ASPX page (after receiving answer from my external auth. service) to enable my Silverlight application to be automatically logged in?</p> <p>Thanks in advance for help</p> http://www.silverlightshow.net/items/Cookies-in-Silverlight-Web-Requests.aspx#comment247 Maciej Gren http://www.silverlightshow.net/items/Cookies-in-Silverlight-Web-Requests.aspx Fri, 18 Jul 2008 15:37:46 GMT RE: Cookies in Silverlight Web Requests <p>Thanks for your comment, Ozzy,</p> <p>Since things connected to Membership are not Silverlight specific it's better not to write about them here. You can send me an email on  <strong>nraychev [ at ] completit.com</strong> and I'll try to help you.</p> http://www.silverlightshow.net/items/Cookies-in-Silverlight-Web-Requests.aspx#comment234 nikolayraychev http://www.silverlightshow.net/items/Cookies-in-Silverlight-Web-Requests.aspx Mon, 14 Jul 2008 00:32:14 GMT RE: Cookies in Silverlight Web Requests <p>I really liked your article because it is very clear and speaks directly to the problem I am having.</p> <p>My SL project calls a WCF service on my server. When I am authenticated, I can see that I am logged in using the same technique mentioned in your article.</p> <p>I also have an HTTP Handler in the same project on the same server, which contains code similar to your example; however, the MembershipUser is always null. Can you think of any reasons why this might be so? Is there something that needs to be entered into the web.config file?</p> http://www.silverlightshow.net/items/Cookies-in-Silverlight-Web-Requests.aspx#comment233 Ozzy http://www.silverlightshow.net/items/Cookies-in-Silverlight-Web-Requests.aspx Sat, 12 Jul 2008 14:49:14 GMT