Solved

Multiple cookies with the same name?  Why?

Posted on 2007-11-26
4
1,173 Views
Last Modified: 2013-11-06
Using trace I see that I have multiple cookies with the same name?  This is causing problems because I am loggin into many different accounts on the same site I am developing and values are getting confused.
I always thought that setting a cookie value overwrote a previous cookies value not created a duplicate, this is using IE 7 if that makes a difference.

Here is a list of cookies for example, note the duplicate ShipState, EmailAddress, CustomerID:

ShipState FL
EmailAddress jim@alivemedia.com
CustomerID 833d090c-c339-48be-bb4j-2567cfb1cd8c  
EmailAddress lisa@alivemedia.com 34
CustomerID e9207cd4-fdf4-41e9-8878-cf91f4dc1qea
ShipState FL
0
Comment
Question by:alivemedia
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
4 Comments
 
LVL 5

Expert Comment

by:TheGD
ID: 20505210
Use server side script like ASP.net to set cookies instead of using javascript.
0
 
LVL 2

Author Comment

by:alivemedia
ID: 20507347
I figured it out, and I am using asp.net to set them.

The problem was I needed to set the path for the cookie.  Apparently in IE 7 cookies set from different folders get a different path property by default - or something like that.

Anyways specifying a path solves this problem and it works as expected now.
0
 
LVL 1

Accepted Solution

by:
Computer101 earned 0 total points
ID: 20678840
PAQed with points refunded (500)

Computer101
EE Admin
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Jaspersoft Studio is a plugin for Eclipse that lets you create reports from a datasource.  In this article, we'll go over creating a report from a default template and setting up a datasource that connects to your database.
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that undeā€¦
The viewer will learn how to use and create keystrokes in Netbeans IDE 8.0 for Windows.
The viewer will learn how to synchronize PHP projects with a remote server in NetBeans IDE 8.0 for Windows.

749 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question