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 December 10th, 2003, 04:55 PM
Registered User
 
Join Date: Jul 2003
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to crobarian
Default Problem with ASP Cookies

I have been getting some problems with dealing with a cookie inside of my webpage.

I have multiple items inside a cookie and when I refresh a page, items from inside the cookie disappear even though there is nothing calling the cookie except stuff to pull information from the cookie.

what could be causing this?

 
Old December 18th, 2003, 10:10 AM
Registered User
 
Join Date: Nov 2003
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to Berni016x
Default

First: if you set one value of a cookie you've to set all values of a cookie! otherwise the other values will be deleted!
Second: maybe you've got the cookies.expires set with now
Third: check if your browser accept cookies!

Kind regards
Bernhard:)

 
Old December 18th, 2003, 02:12 PM
Registered User
 
Join Date: Jul 2003
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to crobarian
Default

Number one seems to have been the problem. I reset the cookie values and worked fine. Thanks.

 
Old June 24th, 2005, 02:10 AM
Registered User
 
Join Date: Jun 2005
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I also facing the same problem. I have set some value in cookie. I am able to retrieve that value once only. After that it has been showing null value in cookie.
Second problem is I create a cookie called "username" with the value "mohit" in ASP.NET. Now the
ASP.NET page shows two cookies named "username" with the value "mohit".






Similar Threads
Thread Thread Starter Forum Replies Last Post
Session Vs ASP cookies mikedeepak Classic ASP Professional 1 June 19th, 2006 12:25 PM
ASP Cookies Question khng ASP.NET 1.0 and 1.1 Basics 2 March 6th, 2005 09:05 AM
cookies in asp.net Asteroid ASP.NET 1.0 and 1.1 Basics 1 September 22nd, 2004 07:47 AM
asp cookies expire chrisneozion12 Classic ASP Basics 2 January 19th, 2004 03:01 PM





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