cookie problem

Posted by Saravanan05 under ASP.NET on 1/21/2010 | Views : 1010 | Status : [Member] | Replies : 2
hi friends

i need to create the cookie in domain name..


For example:

my cookie file named as "administrator@localhost.txt"
but i need to create "administrator@mydomainname.txt"

i tried like this

Dim objcookies As HttpCookie = New HttpCookie("SalesLogin")
objcookies.Domain="www.mydomain.com"


but it is not creatd...

can any one help me?


Regards
Saravana
coimbatore(Manchester of south india)
Tamil Nadu




Responses

Posted by: Sagarp on: 1/22/2010 [Member] Bronze

Up
0
Down
HI

Ref this link

http://forums.asp.net/p/1023838/1390821.aspx
http://www.15seconds.com/issue/971108.htm\

http://www.codeproject.com/KB/web-security/aspnetsinglesignon.aspx


thanks
sagar

Thanks
SagarP
http://www.emanonsolutions.net
http://emanonsolutions.blogspot.com/

Saravanan05, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Nishithraj on: 1/22/2010 [Member] Bronze

Up
0
Down
Saravanan,

The way you implemented is correct. But the problem is the following.

If you create the cookies in the server itself means. It will create the name with local host.
Try to access the url from a client machine and check the cookies.

If the server and client are same means, localhost will come obviously....

Mark this as answer, if it is.....

With regards
Nishithraj Narayanan

Saravanan05, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response