Wrox Programmer Forums
|
BOOK: Beginning Dreamweaver MX/MX 2004 MX ISBN: 978-0-7645-4404-0; MX 2004 ISBN: 978-0-7645-5524-4
This is the forum to discuss the Wrox book Beginning Dreamweaver MX by Charles E. Brown, Imar Spaanjaars, Todd Marks; ISBN: 9780764544040
Please indicate which version of the book you are using when posting questions.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning Dreamweaver MX/MX 2004 MX ISBN: 978-0-7645-4404-0; MX 2004 ISBN: 978-0-7645-5524-4 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 June 12th, 2003, 10:26 PM
Registered User
 
Join Date: Jun 2003
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Default Cookies Not Being Written

I am stuck in Chapter 9, after attempting the "cookie counter" exercise with cookieCounter.asp.

The Request.Cookies("HitCounter") seems to be reinitializing itself, and not incrementing by 1. The same thing happens when I use your code directly from the CD. I've tried rewriting the code, moving it, etc., to no avail.

Please help. I can't go forward without my cookies!

:(
 
Old June 13th, 2003, 11:57 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Hi there,

Did you include the .Expires property of the cookie? This call adds an additional 10 days to the current date so the cookie gets saved to disk.

Also, check that your server and the client are more or less synchronized in time. If there is a big difference, the cookie may have expired before it is saved by the client.

If this doesn't help, post some of the code you use and the specs you have (OS, webserver etc).

Cheers,

Imar
 
Old June 13th, 2003, 02:44 PM
Registered User
 
Join Date: Jun 2003
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Imar:

I appreciate your quick response and suggestions.

However, I have discovered that I have a "cookie monster" on my system.

To make a long story short, the problem arises from either or both of my firewall and PestPatrol, with CookieControl running, wiping out the cookies. Very effective, by the way.

Anyway, problem solved. And thanks again for your help.

Elliot
 
Old June 13th, 2003, 04:56 PM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Aaah, the cookie monster got you as well ;)

Glad it worked out.

Imar





Similar Threads
Thread Thread Starter Forum Replies Last Post
Can a program be written so that? Joe Gelso Other Programming Languages 1 November 8th, 2007 10:13 PM
arabic language written from left to right !!! seco Dreamweaver (all versions) 0 April 3rd, 2007 01:58 PM
What langauge was this app written in? flavour404 Other Programming Languages 14 March 8th, 2007 11:37 AM
Checkboxes--number written to screen srotondo Javascript 1 January 10th, 2005 12:40 PM





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