This is a migrated thread and some comments may be shown as answers.

GetCookies on localhost

3 Answers 67 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Rob Lange
Top achievements
Rank 1
Rob Lange asked on 07 Jun 2010, 08:00 PM
GetCookies seems to work for any URL except http://localhost. I only tried this in IE8.

Please file a bug for investigation and if you know of any workarounds, that would be helpful.

3 Answers, 1 is accepted

Sort by
0
Cody
Telerik team
answered on 07 Jun 2010, 08:52 PM
Hi Rob Lange,

This isn't a bug but rather an IE8 security feature:

http://www.mha.dk/post/IE8-cookies-and-local-addresses-that-are-not-localhost.aspx

Kind regards,
Cody
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Rob Lange
Top achievements
Rank 1
answered on 07 Jun 2010, 09:16 PM

I’m not sure how it explains the problem. The article talks about cookies not working in the browser, rather than WebAii not being able to get them.

 

I see cookies working fine in my browser’s session. I see them send up and down to the local server. I see them in javascript:alert(document.cookie). Yet, I can’t get cookies using WebAii’s GetCookies call.

0
Missing User
answered on 07 Jun 2010, 09:55 PM
Hello Rob,

Just to add quickly, I tried this out and it seemed to work for me with:

CookiesManager m = ActiveBrowser.Cookies;
CookieCollection c = m.GetCookies("http://localhost");

Can you post back with your test code and the method you are setting the cookies?

Greetings,
Nelson Sin
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
General Discussions
Asked by
Rob Lange
Top achievements
Rank 1
Answers by
Cody
Telerik team
Rob Lange
Top achievements
Rank 1
Missing User
Share this question
or