Basic Cookie Question

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
jmueller0823
Forum Commoner
Posts: 37
Joined: Tue Apr 20, 2004 9:06 pm

Basic Cookie Question

Post by jmueller0823 »

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.
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

yes, it's possible.. but that's all up to your page logic to only emit the popup code every 30 days or whatever..
Post Reply