|
-
Sep 2nd, 2011, 01:05 AM
#1
Thread Starter
Frenzied Member
why is cookie still working when browser has cookies disabled?
It's weird, my firefox has cookies disabled, yet I am still able to retrieve the cookie.
Code:
protected void Page_Load(object sender, EventArgs e)
{
Response.Cookies["a"].Value = "1";
}
protected void Button1_Click(object sender, EventArgs e)
{
Label1.Text = Request.Cookies["a"].Value.ToString(); //it returns value 1
}
Why is this?
-
Sep 2nd, 2011, 02:24 AM
#2
Hyperactive Member
Re: why is cookie still working when browser has cookies disabled?
have you disabled your cookies like this ?
MCP, MCTS, Microsoft MVP [Asp.Net/IIS]
For more .NET development tips visit .NET Tips
If the post is useful then please  Rate it
-
Sep 2nd, 2011, 05:42 AM
#3
Re: why is cookie still working when browser has cookies disabled?
Check your cookies enabled or using this one
Code:
If Request.Browser.Cookies = True Then
'... Cookies Enabled
End If
Please mark you thread resolved using the Thread Tools as shown
-
Sep 2nd, 2011, 08:45 PM
#4
Thread Starter
Frenzied Member
Re: why is cookie still working when browser has cookies disabled?
koolprasad2003: I checked that site, and that is exactly what I did, and my web app is still able to get that value from the cookie.
danasegarane: It is returning true for me. I also checked the Session.CookieMode, and that returns "UseCookies".
FYI: I tried to log on to Yahoo!Mail, and that gave me a message saying that it can't log me on because cookies was disabled. So the browser is disabled, but my webapp is allowing it. Do i need to make web.config setting changes?
-
Sep 3rd, 2011, 06:10 AM
#5
Re: why is cookie still working when browser has cookies disabled?
 Originally Posted by benmartin101
koolprasad2003: I checked that site, and that is exactly what I did, and my web app is still able to get that value from the cookie.
danasegarane: It is returning true for me. I also checked the Session.CookieMode, and that returns "UseCookies".
FYI: I tried to log on to Yahoo!Mail, and that gave me a message saying that it can't log me on because cookies was disabled. So the browser is disabled, but my webapp is allowing it. Do i need to make web.config setting changes?
Did you used firefox to access the mail or automation ?
Please mark you thread resolved using the Thread Tools as shown
-
Sep 3rd, 2011, 07:40 AM
#6
Re: why is cookie still working when browser has cookies disabled?
Are you debugging straight out of Visual Studio, or are you deploying to IIS first?
Gary
-
Sep 7th, 2011, 03:41 PM
#7
Thread Starter
Frenzied Member
Re: why is cookie still working when browser has cookies disabled?
danasegarane:I access the yahoo email through firefox.
Gep13: I tried both ways, and the same result.
-
Sep 9th, 2011, 02:27 PM
#8
Re: why is cookie still working when browser has cookies disabled?
Does the same thing happen in Chrome/IE?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|