473,327 Members | 2,074 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,327 software developers and data experts.

Cookies

I am having trouble writing cookies despite adding the cookie to the
Response.Cookeies collection. The Request.Browser.Cookies returns TRUE so I
know the browser is storing cookies and I can even see like Google cookies
in Documents and Settings/MyName/Cookies however there is never a cookie
saved by the name I create it with.

As well as this, the Request.Cookies.Count is three but in the directory I
just referred to there are hundreds, so Im beginning to wonder where the
hell it thinks its storing the cookies ?

Can anyone help ?
Nov 19 '05 #1
5 3841
Found it, I had not set the cookie expiration date. I'm having a bad day !

Cheers Anyways.
"Mr Newbie" <he**@now.com> wrote in message
news:uC**************@TK2MSFTNGP15.phx.gbl...
I am having trouble writing cookies despite adding the cookie to the
Response.Cookeies collection. The Request.Browser.Cookies returns TRUE so
I know the browser is storing cookies and I can even see like Google
cookies in Documents and Settings/MyName/Cookies however there is never a
cookie saved by the name I create it with.

As well as this, the Request.Cookies.Count is three but in the directory I
just referred to there are hundreds, so Im beginning to wonder where the
hell it thinks its storing the cookies ?

Can anyone help ?

Nov 19 '05 #2
Are you being able to read those 3 cookie values? if os they are
Non-Persistent cookies.

Cookies could be Persistent or Non-Persistent , only Persistent gets
saved to local folder. Other one stays in browser memory.

Also Request.Cookies.Count would give the count of cookies for your
website, not count of all cookies in client machine

this article may help "Basics of Cookies in ASP.NET"

http://msdn.microsoft.com/library/de...Cookies101.asp

Nov 19 '05 #3
IECookiesView [1] is a very useful tool you should not be without.

<%= Clinton Gallagher
METROmilwaukee (sm) "A Regional Information Service"
NET csgallagher AT metromilwaukee.com
URL http://metromilwaukee.com/
URL http://clintongallagher.metromilwaukee.com/

[1] http://www.nirsoft.net/utils/iecookies.html

"Mr Newbie" <he**@now.com> wrote in message
news:Oj**************@TK2MSFTNGP15.phx.gbl...
Found it, I had not set the cookie expiration date. I'm having a bad day !

Cheers Anyways.
"Mr Newbie" <he**@now.com> wrote in message
news:uC**************@TK2MSFTNGP15.phx.gbl...
I am having trouble writing cookies despite adding the cookie to the
Response.Cookeies collection. The Request.Browser.Cookies returns TRUE so
I know the browser is storing cookies and I can even see like Google
cookies in Documents and Settings/MyName/Cookies however there is never a
cookie saved by the name I create it with.

As well as this, the Request.Cookies.Count is three but in the directory
I just referred to there are hundreds, so Im beginning to wonder where
the hell it thinks its storing the cookies ?

Can anyone help ?


Nov 19 '05 #4
Thanks for your help.
<sr**********@gmail.com> wrote in message
news:11*********************@g49g2000cwa.googlegro ups.com...
Are you being able to read those 3 cookie values? if os they are
Non-Persistent cookies.

Cookies could be Persistent or Non-Persistent , only Persistent gets
saved to local folder. Other one stays in browser memory.

Also Request.Cookies.Count would give the count of cookies for your
website, not count of all cookies in client machine

this article may help "Basics of Cookies in ASP.NET"

http://msdn.microsoft.com/library/de...Cookies101.asp

Nov 19 '05 #5
Thanks Clinton.

"clintonG" <cs*********@REMOVETHISTEXTmetromilwaukee.com> wrote in message
news:eO**************@TK2MSFTNGP10.phx.gbl...
IECookiesView [1] is a very useful tool you should not be without.

<%= Clinton Gallagher
METROmilwaukee (sm) "A Regional Information Service"
NET csgallagher AT metromilwaukee.com
URL http://metromilwaukee.com/
URL http://clintongallagher.metromilwaukee.com/

[1] http://www.nirsoft.net/utils/iecookies.html

"Mr Newbie" <he**@now.com> wrote in message
news:Oj**************@TK2MSFTNGP15.phx.gbl...
Found it, I had not set the cookie expiration date. I'm having a bad day
!

Cheers Anyways.
"Mr Newbie" <he**@now.com> wrote in message
news:uC**************@TK2MSFTNGP15.phx.gbl...
I am having trouble writing cookies despite adding the cookie to the
Response.Cookeies collection. The Request.Browser.Cookies returns TRUE
so I know the browser is storing cookies and I can even see like Google
cookies in Documents and Settings/MyName/Cookies however there is never a
cookie saved by the name I create it with.

As well as this, the Request.Cookies.Count is three but in the directory
I just referred to there are hundreds, so Im beginning to wonder where
the hell it thinks its storing the cookies ?

Can anyone help ?



Nov 19 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Brian Burgess | last post by:
Hi all, Anyone know of any special issues with storing cookies with ASP? I'm trying this with two browsers: One is IE 6.0 with cookies set to 'prompt'. This has been working properly as any...
20
by: Brian Burgess | last post by:
Hi all, Anyone know if this is possible? If so, on which page would the cookie be? .. On the page calling a function defined in the include file? thanks in advance.. -BB
9
by: | last post by:
Is it possible for a user to enable permanent cookies but disable session cookies.....this seems like a contradition yet this is what I appear to be reading in online articles?
1
by: John Taylor-Johnston | last post by:
I'm a University academic looking for a proper definition of JavaScript Cookies. http://www.CollegeSherbrooke.qc.ca/languesmodernes/604-HAE_Grammar_Practice/ I'm trying to decipher what...
6
by: Mark | last post by:
Hi... I've come across some weird bug with Response.Cookies. Or maybe it will be called "by design" but for the life of me I can't figure out what purpose it would serve. If you're setting a...
8
by: CDARS | last post by:
Hi all, I have a confusing question on ASP.NET cookies usage: 1> Response.Cookies("test").value = Now 2> Response.Write(Request.Cookies("test").value) 3> 4> Response.write("<hr>") 5>...
6
by: Stephane | last post by:
Hi, I have a login page where if the user wants his access codes to be saved are set into a cookie. In the logout page, I want to delete those cookies. I tried this and this is not working at...
1
by: Alex Nitulescu | last post by:
I have the following very simple colde (while learning about cookies and session state): Private Sub cmdAddCookie_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles...
0
by: Claudio | last post by:
I have a demo app where cookies does not work. The first page create a cookies. The second read the contet. If I browse the pages via IE6.0 the pages does not work. If I browse the pages via...
0
by: rn5a | last post by:
This is how I am creating & then reading cookies: <script runat="server"> Sub Page_Load(ByVal obj As Object, ByVal ea As EventArgs) 'create cookies Response.Cookies("UserName").Value = "Ron"...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.