views:

43

answers:

1

when i save cookie, it stored with the current URL link., also when i get cookie that search for the current URL only. i need to save and retrieve cookies with my own defined URL links. can you help me

+1  A: 

You cannot read cookies set by different domains. That would be a horrific security problem if it was possible.

David Dorward
@saran: yes that is possible, because they are on the same domain ("sample"). I think you should edit the title of your question if that is the case.
Crescent Fresh
@Crescent I think "sample" is a directory here. The OP's question could be "how to read cookies set in a different directory on the same domain" - don't know
Pekka
Testing foo/bar.aspx please ignore...
Crescent Fresh
Testing http://foo/bar.aspx please ignore...
Crescent Fresh
@saran wrap: you intentionally prefixed your sample links with "http://", which confuses the issue. Please address!
Crescent Fresh
The question title explicitly says "domain"
David Dorward