Click here to Skip to main content
15,885,695 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: Custom Control property problem Pin
Dirso1-Dec-08 9:21
Dirso1-Dec-08 9:21 
AnswerRe: Custom Control property problem Pin
Christian Graus1-Dec-08 9:45
protectorChristian Graus1-Dec-08 9:45 
GeneralRe: Custom Control property problem Pin
Dirso1-Dec-08 12:53
Dirso1-Dec-08 12:53 
GeneralRe: Custom Control property problem Pin
Christian Graus1-Dec-08 14:18
protectorChristian Graus1-Dec-08 14:18 
AnswerWindows Workflow Foundation Pin
scottichrosaviakosmos1-Dec-08 6:36
scottichrosaviakosmos1-Dec-08 6:36 
GeneralRe: Windows Workflow Foundation Pin
Paul Conrad1-Dec-08 6:47
professionalPaul Conrad1-Dec-08 6:47 
QuestionRender Page to Word [modified] Pin
kenexcelon1-Dec-08 5:42
kenexcelon1-Dec-08 5:42 
QuestionCan't Delete Cookie being accessed from subdomains Pin
Mateobus1-Dec-08 5:26
Mateobus1-Dec-08 5:26 
Hello,

I would like to create a cookie upon login that can be read on two different subdomains. I have achieved this. The problem that I am having is that I am unable to delete the cookie upon logout, as it can still be read even after it is deleted. Here is the code:

At login the cookie is set from a.mydomain.com:
c#
HttpCookie cookie = new HttpCookie("my_cookie");
cookie.Value = "test";
cookie.Domain = ".mydomain.com";
Response.Cookies.Add(cookie);


Cookie reading on subdomain (y.x.mydomain.com) vbscript
myVal = Request.Cookies("my_cookie")


Happens back at a.mydomain.com
Logout:
Request.Cookies["my_cookie"].Domain = ".mydomain.com";
Request.Cookies["my_cookie"].Expires = DateTime.MinValue;


However when I go back to y.x.mydomain.com, the cookie value still show up as what it was initially set to.

Can anyone shed some light onto why I can't seem to be able to delete the cookie.
QuestionGridview binding issue Pin
mpavas1-Dec-08 3:14
mpavas1-Dec-08 3:14 
AnswerRe: Gridview binding issue Pin
Muhammad Gouda1-Dec-08 3:41
Muhammad Gouda1-Dec-08 3:41 
GeneralRe: Gridview binding issue Pin
mpavas1-Dec-08 4:35
mpavas1-Dec-08 4:35 
Questionrecommendation on retriving data from DB Pin
Tugbay Sahin1-Dec-08 2:16
Tugbay Sahin1-Dec-08 2:16 
AnswerRe: recommendation on retriving data from DB Pin
Nishant Singh1-Dec-08 2:28
Nishant Singh1-Dec-08 2:28 
AnswerRe: recommendation on retriving data from DB Pin
Abhijit Jana1-Dec-08 2:28
professionalAbhijit Jana1-Dec-08 2:28 
AnswerRe: recommendation on retriving data from DB Pin
N a v a n e e t h1-Dec-08 2:56
N a v a n e e t h1-Dec-08 2:56 
AnswerRe: recommendation on retriving data from DB Pin
Tugbay Sahin1-Dec-08 3:04
Tugbay Sahin1-Dec-08 3:04 
AnswerRe: recommendation on retriving data from DB Pin
Muhammad Gouda1-Dec-08 4:16
Muhammad Gouda1-Dec-08 4:16 
QuestionHow can I retrieve the source code of the content in an iframe. Pin
a_b1111-Dec-08 1:58
a_b1111-Dec-08 1:58 
AnswerRe: How can I retrieve the source code of the content in an iframe. Pin
Dominic Goulet1-Dec-08 2:32
Dominic Goulet1-Dec-08 2:32 
AnswerRe: How can I retrieve the source code of the content in an iframe. Pin
Abhijit Jana1-Dec-08 2:35
professionalAbhijit Jana1-Dec-08 2:35 
GeneralRe: How can I retrieve the source code of the content in an iframe. Pin
Dominic Goulet1-Dec-08 3:06
Dominic Goulet1-Dec-08 3:06 
AnswerRe: How can I retrieve the source code of the content in an iframe. Pin
Muhammad Gouda1-Dec-08 4:07
Muhammad Gouda1-Dec-08 4:07 
QuestionRegular expression that rejects empty string. Pin
paper671-Dec-08 1:39
paper671-Dec-08 1:39 
AnswerRe: Regular expression that rejects empty string. Pin
Brij1-Dec-08 1:51
mentorBrij1-Dec-08 1:51 
Questionhow to create a file list Pin
souravghosh181-Dec-08 1:04
souravghosh181-Dec-08 1:04 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.