PDA

View Full Version : Assist with Cookie Basics


jmueller0823
09-28-2005, 05:10 AM
We're displaying a popup every thirty days via a cookie.

The particular js script we're using is folder-specific.

For example:
1. Visitor displays the home page-- the popup launches.
2. Visitor displays the home page again -- popup will not launch again for 30 days.

3. Visitor displays a page located in a sub-folder-- the popup launches.
4. Visitor displays a page located in a sub-folder again--popup will not launch again for 30 days.

and so on...

QUESTION
Is the above "default" behavior for a cookie?

WHAT WE WANT TO DO IS THIS
Regardless of what page a visitor displays, we want the the popup to ONLY
launch a total of one time every thirty days.

Is that possible? Thanks.

nikkiH
09-28-2005, 03:08 PM
Sure it is.
Why it isn't doing that already would be something in your code, possibly a domain thing or the scripts aren't calling the cookie the same name or something.

jmueller0823
09-28-2005, 03:51 PM
The cookie functions we're using were "borrowed" from another site.

Sounds like we should start over with a set of vanilla cookie functions.