p2p.wrox.com Forums

Need to download code?

View our list of code downloads.

Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of computer programmers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other programmers’ questions, win occasional prizes given to our best members, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old June 12th, 2003, 11:26 PM
Registered User
Points: 35, Level: 1
Points: 35, Level: 1 Points: 35, Level: 1 Points: 35, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: San Diego, CA, USA.
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!

:(
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
  #2 (permalink)  
Old June 13th, 2003, 12:57 PM
Imar's Avatar
Wrox Author
Points: 35,654, Level: 82
Points: 35,654, Level: 82 Points: 35,654, Level: 82 Points: 35,654, Level: 82
Activity: 100%
Activity: 100% Activity: 100% Activity: 100%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 10,575
Thanks: 12
Thanked 284 Times in 280 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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
  #3 (permalink)  
Old June 13th, 2003, 03:44 PM
Registered User
Points: 35, Level: 1
Points: 35, Level: 1 Points: 35, Level: 1 Points: 35, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: San Diego, CA, USA.
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
  #4 (permalink)  
Old June 13th, 2003, 05:56 PM
Imar's Avatar
Wrox Author
Points: 35,654, Level: 82
Points: 35,654, Level: 82 Points: 35,654, Level: 82 Points: 35,654, Level: 82
Activity: 100%
Activity: 100% Activity: 100% Activity: 100%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 10,575
Thanks: 12
Thanked 284 Times in 280 Posts
Default

Aaah, the cookie monster got you as well ;)

Glad it worked out.

Imar
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off
Forum Jump

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 02: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
.NET cookies - privacy set to: block all cookies daryl ASP.NET 1.1 1 April 6th, 2004 03:08 PM



All times are GMT -4. The time now is 12:34 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
© 2010 Wiley Publishing, Inc