Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > WinFX General

Vista - XBAP: Application.GetCookie() not getting browser cookies

 
 
Old 11-23-2006   #1 (permalink)
Shan McArthur


 
 

XBAP: Application.GetCookie() not getting browser cookies

Hello,

I am having problems using Application.GetCookie() within a browser-deployed
XBAP application. I know the browser that is hosting the XBAP application
has cookies (including the ASP.NET session cookie). When I get the XBAP
application to call Application.GetCookie, it throws the following
exception: No more data is available (Native Error Code=259).


I notice that if I call SetCookie(), then GetCookie() retrieves a value.
That said, the important part is to get the browser's session cookie so that
the XBAP application can interact with the host website.


Does anyone know how to get the cookies from the host browser of an XBAP
application? This is critical to being able to build an XBAP application
that is part of any website.

Thanks,
Shan McArthur




My System SpecsSystem Spec
Old 01-08-2007   #2 (permalink)
Shan McArthur


 
 

Re: Application.GetCookie() not getting browser cookies

The problem is that XBAP cannot read session cookies.

"Shan McArthur" <shan_mcarthur@spamcop.net> wrote in message
news:ewOpK0xDHHA.4740@TK2MSFTNGP03.phx.gbl...
> Hello,
>
> I am having problems using Application.GetCookie() within a
> browser-deployed
> XBAP application. I know the browser that is hosting the XBAP application
> has cookies (including the ASP.NET session cookie). When I get the XBAP
> application to call Application.GetCookie, it throws the following
> exception: No more data is available (Native Error Code=259).
>
>
> I notice that if I call SetCookie(), then GetCookie() retrieves a value.
> That said, the important part is to get the browser's session cookie so
> that
> the XBAP application can interact with the host website.
>
>
> Does anyone know how to get the cookies from the host browser of an XBAP
> application? This is critical to being able to build an XBAP application
> that is part of any website.
>
> Thanks,
> Shan McArthur
>
>
>



My System SpecsSystem Spec
 

Thread Tools


Similar Threads
Thread Forum
Setting cookies on InternetExplorer.Application VB Script
Access denied Application Data, Cookies Pictures, etc in Windows E Vista General


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

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