473,560 Members | 3,045 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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.Cookie s (""&vsession&"" ).Expires=Date( ) + 90
Response.Cookie s (""&vsession&"" )("date")=Date( )
rs.MoveFirst
Do while NOT rs.EOF
Response.Cookie s (""&vsession&"" )("item,"&num)= rs("prodId")
Response.Cookie s (""&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 1392
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.blueyond er.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.Cookie s (""&vsession&"" ).Expires=Date( ) + 90
Response.Cookie s (""&vsession&"" )("date")=Date( )
rs.MoveFirst
Do while NOT rs.EOF
Response.Cookie s (""&vsession&"" )("item,"&num)= rs("prodId")
Response.Cookie s (""&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
4313
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, Nirmal
13
2098
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 is not parsed correctly, only "Fri," is matched.
0
2319
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 one of the 2 happens: 1) The cookie we set can not be read (expected), but then a new one can not be written ether (I looked at the server headers...
4
5280
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 cookie. Here is the code I have now. In the header, I have the following: <SCRIPT language="JavaScript"> var cookieStatus; if...
1
1730
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 Server1 and Server3 websites. This seems to imply a problem with the user's browser settings ... except the users that have consistent problems with the...
7
7172
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 time reaches the set expire-time. But if it is an expire time set on my server in California, and the cookie is put on a computer that is running...
2
3724
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 a DLL, which is why I use HttpContext)... HttpCookie cookie = new HttpCookie("fred", "ferret");
6
4351
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 whole project runs in the UTF-8 encoding. The Internet Explorer handles this cookie correctly, whereas the FireFox writes only some byte gargabe and...
4
1254
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 the cookie data is set without it appearing in the browser? A shortened version of the code is below, in the full version there is also userID check,...
0
7632
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
8066
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7596
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
7920
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
1
5458
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5175
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3605
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3585
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
877
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.