473,386 Members | 1,602 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,386 software developers and data experts.

cookie problems

i am trying to set a cookie to the user of the site and then pull the data
back to view the cookie data.

this works fine locally on iis, however it does not work using a different
pc. (cookies allowed)

any suggestions?

thanks in advance

j

below are extracts from the 2 pages
----------------------------------------------------
num=1
Response.Cookies (""&vsession&"").Expires=Date() + 90
Response.Cookies (""&vsession&"")("date")=Date()
rs.MoveFirst
Do while NOT rs.EOF
Response.Cookies (""&vsession&"")("item,"&num)=rs("prodId")
Response.Cookies (""&vsession&"")("qty," &num)= rs("Qty")
num=num+1
rs.MoveNext
Loop

----------------------------------------------------------------------------
--
i=1
for each x in Request.Cookies

response.write "quote-"&i&"-"&x&"<br>"
i=i+1

if Request.Cookies(x).HasKeys then
for each y in Request.Cookies(x)
response.write( y & "=" & Request.Cookies(x)(y))
response.write("<br />")
next
else
Response.Write(Request.Cookies(x) & "<br />")
end if

response.write "<br>"

next


Jul 19 '05 #1
1 1389
dont worry - when the site is live it is ok - must be a local issue,
probably firewall

"monki" <j@usura.org> wrote in message
news:4L*****************@news-binary.blueyonder.co.uk...
i am trying to set a cookie to the user of the site and then pull the data
back to view the cookie data.

this works fine locally on iis, however it does not work using a different
pc. (cookies allowed)

any suggestions?

thanks in advance

j

below are extracts from the 2 pages
----------------------------------------------------
num=1
Response.Cookies (""&vsession&"").Expires=Date() + 90
Response.Cookies (""&vsession&"")("date")=Date()
rs.MoveFirst
Do while NOT rs.EOF
Response.Cookies (""&vsession&"")("item,"&num)=rs("prodId")
Response.Cookies (""&vsession&"")("qty," &num)= rs("Qty")
num=num+1
rs.MoveNext
Loop

-------------------------------------------------------------------------- -- --
i=1
for each x in Request.Cookies

response.write "quote-"&i&"-"&x&"<br>"
i=i+1

if Request.Cookies(x).HasKeys then
for each y in Request.Cookies(x)
response.write( y & "=" & Request.Cookies(x)(y))
response.write("<br />")
next
else
Response.Write(Request.Cookies(x) & "<br />")
end if

response.write "<br>"

next

Jul 19 '05 #2

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

Similar topics

7
by: N.K | last post by:
Hi , Python's existing cookie module doesnt supports new cookie headers SetCookie2 , How to submit a patch for that ? I tried emailing person who owns that module.But no response. Thanks,...
13
by: Manlio Perillo | last post by:
Hi. I'm using the Cookie module (on the client side). I have found a problem trying to parse the cookie: "Set-Cookie: value=thevalue; path=/; expires=Fri, 21-May-2004 10:40:51 GMT" The date...
0
by: | last post by:
I''m having a problem with cookies that is driving me insane :). - If a user comes to http://domain.com and a cookie is set for them, then the user for whatever reason jumps to http://www.domain.com...
4
by: Shannon Jacobs | last post by:
I'm doing some trivial surveys, and I want to know if the same user answers twice. Can't really know that, but at least I thought I could check for the same browser/computer combination by using a...
1
by: HorseGeek | last post by:
I have three servers: Server1, Server2, and Server3. There is a login cookie does not expire for SOME users on Server2. Ironically, the login cookie expires correctly for ALL users on the...
7
by: What-a-Tool | last post by:
How does the expire date work setting it server side with asp. I know with javascript setting it client side it will be set to the clients local time, and therefore expire when the clients local...
2
by: Alan Silver | last post by:
Hello, I have discovered that if I try and add a cookie when one by that already exists, nothing happens. No error, but the cookie is not set to the new value. For example (this is running in...
6
by: Victor | last post by:
Hi everybody, could anybody help me with the following problem : I need to set a cookie containing a Russian character string as the value, using the construct "document.cookie = ...". The...
4
by: rodmc | last post by:
Hi, I am trying to set a cookie on a client computer using the Cookie module however all I get is the text being printed in the browser window. Can anyone point me in the right direction so that...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.