Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Cookies with Parameters?

Status
Not open for further replies.

smurfer

Programmer
Jun 8, 2001
57
US
I am trying to set a cookie equal to the value of a parameter that may or may not be passed in via the querystring. If the parameter is in the querystring, it will set the cookie equal to the value of the param, if not set it equal to the http_referer value. I have written code to handle this but am finding that if I use a param called Id, (i.e it sets a cookie for Id=123. However if I use a lowercase id as the param,
(i.e it is not overwriting hte existing Id cookie, it is simply adding another entry to it using the lowercase id value. Are params case sensitive in regards to cookies? Must I enforce the use of Id over id? This should not be a major issue since most url's with parameters will be hit via hyperlinks, however I ran across this and wondered if they were case sensitive.
Thanks...
 
Don't take this as gospel, but yes, I am pretty sure cookies are case sensitive.

Easy to check, see if you can retrieve the uppercase cookie using lowercase. Steve Davis
hey.you@hahaha.com.au
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top