Hi.
I have an ASP (3.0, not .NET) app that writes cookies with hyphens and
spaces in the names and values. If I had the control over the apps that will
be looking for these cookies, I would eliminate the special characters, but
as it is, I do not have that luxury.
When I write the cookies, they seem okay in IE, but in Firefox, they are
strange. For example, the cookie name is US-NONUS, but in Firefox it looks
like US%2DNONUS. For a value of NEW HAMPSHIRE it comes out in Firefox as
NEW+HAMPSHIRE.
Please note that these strings are not created in any special way: They are
hard-coded into the ASP, with no encoding or anything like that.
Thoughts?
Thanks. 4 2539
Robin Briggs wrote on 06 mrt 2005 in
microsoft.publi c.inetserver.as p.general: When I write the cookies, they seem okay in IE, but in Firefox, they are strange. For example, the cookie name is US-NONUS, but in Firefox it looks like US%2DNONUS. For a value of NEW HAMPSHIRE it comes out in Firefox as NEW+HAMPSHIRE.
That would be nice new way of browswer detection, btw!
However, testing this in both Firefosx and IE shows it is not true:
======= test.asp =============
<%=request.cook ies("test")%>
<%
response.cookie s("test")="Ne w Hampshire-Test"
%>
=============== =====
Perhaps your <form method=..> is the culprit???
--
Evertjan.
The Netherlands.
(Replace all crosses with dots in my emailaddress)
I think we are miscommunicatin g. I am talking about WRITING cookies. Has
nothing to do with reading them. Has nothing to do with the form submit.
Somewhere in the middle of several hundred lines of ASP code, I write
cookies that, when viewed in Firefox, show up with characters I did not use.
If you have any ideas, that would be appreciated.
"Evertjan." <ex************ **@interxnl.net > wrote in message
news:Xn******** ************@19 4.109.133.29... Robin Briggs wrote on 06 mrt 2005 in microsoft.publi c.inetserver.as p.general:
When I write the cookies, they seem okay in IE, but in Firefox, they are strange. For example, the cookie name is US-NONUS, but in Firefox it looks like US%2DNONUS. For a value of NEW HAMPSHIRE it comes out in Firefox as NEW+HAMPSHIRE.
That would be nice new way of browswer detection, btw!
However, testing this in both Firefosx and IE shows it is not true:
======= test.asp =============
<%=request.cook ies("test")%>
<% response.cookie s("test")="Ne w Hampshire-Test" %>
=============== =====
Perhaps your <form method=..> is the culprit???
-- Evertjan. The Netherlands. (Replace all crosses with dots in my emailaddress)
Robin Briggs wrote on 06 mrt 2005 in "Evertjan." <ex************ **@interxnl.net > wrote in message Robin Briggs wrote on 06 mrt 2005 in
When I write the cookies, they seem okay in IE, but in Firefox, they are strange. For example, the cookie name is US-NONUS, but in Firefox it looks like US%2DNONUS. For a value of NEW HAMPSHIRE it comes out in Firefox as NEW+HAMPSHIRE. That would be nice new way of browswer detection, btw!
However, testing this in both Firefosx and IE shows it is not true:
======= test.asp =============
<%=request.cook ies("test")%>
<% response.cookie s("test")="Ne w Hampshire-Test" %>
=============== =====
Perhaps your <form method=..> is the culprit???
I think we are miscommunicatin g. I am talking about WRITING cookies. Has nothing to do with reading them. Has nothing to do with the form submit. Somewhere in the middle of several hundred lines of ASP code, I write cookies that, when viewed in Firefox, show up with characters I did not use.
If you have any ideas, that would be appreciated.
[Please do not toppost. Topposting corrected]
Robin,
No miscommunicatio n from this side, me thinks.
My test.asp above writes a cookie every time you press F5, and before it
writes the cookie, it reads the cookie that is written last F5 press.
The read cookie shows up as written in both browsers.
Of course you will have to read them in a test situation to see the
result.
[The <form > was just a suggestion as a probable source of the error]
Did you try to reproduce the error with my code? And what was the result?
--
Evertjan.
The Netherlands.
(Replace all crosses with dots in my emailaddress)
"Robin Briggs" <rb*****@emedic ine.com> wrote in message
news:OR******** ******@TK2MSFTN GP14.phx.gbl... I think we are miscommunicatin g. I am talking about WRITING cookies. Has nothing to do with reading them. Has nothing to do with the form submit. Somewhere in the middle of several hundred lines of ASP code, I write cookies that, when viewed in Firefox, show up with characters I did not
use.
"When viewed in firefox" you mean via the cookie browser? If so, that
shouldn't matter -- firefox can store the cookies however it wants to. Some
browsers are going to encode the values. All you should worry about is that
your code, when reading the cookie value, gets the unencoded value (e.g.
"US-NONUS" instead of "US%2DNONUS ") .
--
Ben Strackany www.developmentnow.com This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Google Mike |
last post by:
Tell me if this can be done, and if I have a misconception here.
I am writing an app that will be served up in an app farm, and
therefore I need to move the session information to the client, not
using server-side session features. The way I have typically done this
in the ASP world was with cookies. Another way to handle this is with
a...
|
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
|
by: Brian Burgess |
last post by:
Hi all,
Anyone see anything wrong with the following:
***************************************************************
<%@ LANGUAGE="VBSCRIPT" %>
<%
Option Explicit
Dim nAcctNbr
Dim nMsgStart
|
by: PeteC |
last post by:
I'm working on a web page which has some form elements in it which I need to
manipulate using JavaScript.
If the element is (for example, in a form called TicketForm)
<INPUT name="intNumTickets" onBlur="calcPrice();" value="0">
I can read and manipulate this value in CalcPrice using the format
document.TicketForm.intNumTickets
|
by: Gustaf Liljegren |
last post by:
IE does, and I can't remember this used to be a problem in Netscape. I
guess someone in the Mozilla team just came up with a Smart Idea about
the True Semantics of the Hyphen Minus character. :-( How do I make IE
and Firefox agree to make hyphens trigger a linebreak?
Gustaf
| |
by: Sergei Riaguzov |
last post by:
I have a very strange behaviour with POST keys.
Consider a test:
wtf.html:
=== Cut ===
<form action="eh.php" method="POST">
<input type="checkbox" name="many spaces and. . dots. . "/>
<input type="submit" value="Submit">
|
by: David |
last post by:
Sent this to alt.php a couple of days back, but doesn't look like I'll
get an answer, so trying here.
I'm trying to convert a script to use friendly URLs, I've done this
before, but my PHP skills are quite basic so far, far from proficient
at this.
..htaccess file-
DirectoryIndex default.php index.asp index.html index.htm index.php
|
by: feucos |
last post by:
Hi all,
I am new to these so plz never mind if this is funny.
here is my problem :
Table : moody
Column : Title
|
by: Jeff |
last post by:
I have a legacy database table that has spaces in the field names.
So I have a form that looks like this:
<input type="text" name="name with space" value="some_value">
on the server I have:
$field_name = 'name with space';
|
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...
|
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language...
| |
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it. ...
|
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...
|
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...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
|
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...
|
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...
| |
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |