Wrox Programmer Forums
|
Classic ASP Components Discussions specific to components in ASP 3.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Components section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old March 22nd, 2005, 01:16 AM
Authorized User
 
Join Date: Mar 2005
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Default ASP.NET Duplicate Cookies Issue

Hi all,
I'm developing an ASP.NET web application. I'm storing information in cookies like so...

 If Request.Cookies("userInfo") Is Nothing Then
     Dim cookie As New HttpCookie("userInfo")
     cookie.Expires = DateTime.MaxValue
     cookie.Values.Add("Key1", "value 1")
     cookie.Values.Add("Key1", "value 2")
     Response.AppendCookie(cookie)
 End If

After this cookie is created, I modify the cookie by overwriting it, like everyone suggests. I know that my code is correct for this, as this worked fine when I tested it on my development box. However, when I upload my application to my host's server, all of a sudden when I attempt to modify a cookie, instead of overwriting the previous one, it creates a new one with the exact same name.

Has anyone run into this problem? Any help would be greatly appreciated.

Thanks,
Justin
http://www.universityauction.net
__________________
Justin Toth
http://www.universityauction.net
 
Old March 22nd, 2005, 08:16 PM
Authorized User
 
Join Date: Mar 2005
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Anyone?

Justin Toth
http://www.universityauction.net
 
Old March 22nd, 2005, 08:27 PM
Friend of Wrox
 
Join Date: Jan 2004
Posts: 1,870
Thanks: 12
Thanked 20 Times in 20 Posts
Send a message via AIM to mat41
Default

This is the classic ASP area. your ASP.NET questions would be beter suited in the .NET area

Wind is your friend
Matt
 
Old March 23rd, 2005, 12:28 AM
Authorized User
 
Join Date: Mar 2005
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I figured it out anyway. Thanks for the suggestion though.

Justin Toth
http://www.universityauction.net





Similar Threads
Thread Thread Starter Forum Replies Last Post
i e 6 issue with asp.net 1.1 rsanuj ASP.NET 1.x and 2.0 Application Design 0 August 26th, 2008 08:28 AM
sharing cookies between asp and vb.net collie Pro VB.NET 2002/2003 3 April 19th, 2005 10:31 AM
ASP.NET C# Dropdownlist value issue songsan ASP.NET 1.0 and 1.1 Basics 3 January 4th, 2005 08:51 PM
cookies in asp.net Asteroid ASP.NET 1.0 and 1.1 Basics 1 September 22nd, 2004 07:47 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.