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
Solved

Multiple cookies with the same name?  Why?

Posted on 2007-11-26
4
1,172 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
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

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
VB.Net - MemoryMappedFiles - Confirm receipt 2 24
vb.net class 3 21
run a stored procedure from vb.net 1 27
Groupbox Control ? 2 17
A while ago, I was working on a Windows Forms application and I needed a special label control with reflection (glass) effect to show some titles in a stylish way. I've always enjoyed working with graphics, but it's never too clever to re-invent …
It’s quite interesting for me as I worked with Excel using vb.net for some time. Here are some topics which I know want to share with others whom this might help. First of all if you are working with Excel then you need to Download the Following …
THe viewer will learn how to use NetBeans IDE 8.0 for Windows to perform CRUD operations on a MySql database.
The viewer will learn how to synchronize PHP projects with a remote server in NetBeans IDE 8.0 for Windows.

808 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