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
2010-08-04 10:49:32
@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
2010-08-04 11:41:45
@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
2010-08-04 11:45:22
Testing foo/bar.aspx please ignore...
Crescent Fresh
2010-08-04 11:46:49
Testing http://foo/bar.aspx please ignore...
Crescent Fresh
2010-08-04 11:47:16
@saran wrap: you intentionally prefixed your sample links with "http://", which confuses the issue. Please address!
Crescent Fresh
2010-08-04 11:48:03
The question title explicitly says "domain"
David Dorward
2010-08-04 12:30:34