Need cookie & script

F

Fred

I've check all the info I can find on cookies and I have gotten some
idea of how to set a cookie, set the expiration, and get the cookie
value.

But I need help bringing it all together to accomplish what I need to
do.

When someone first visits a signup page, I want them to see a popup
that says they can sign up within the next 30 days without having to
pay an appication fee. Then each time they revisit over the next 30
days, the popup displays a message that says "X days left to save."

Finally, after the 30 days expires, they need to go to a different
signup page...one that contains and requires the signup fee.

I get the set cookie concept. Does the popup get generted within the
get cookie script? And what about sending people to the other page
after 30 day? Is that a different script? Do I need a more persistant
cookie to distinguish between new visitors and someone who has already
hit the page and did not signup within 30 days?

All help / suggestions appreciated!
 
R

Richard Formby

Fred said:
I've check all the info I can find on cookies and I have gotten some
idea of how to set a cookie, set the expiration, and get the cookie
value.

But I need help bringing it all together to accomplish what I need to
do.

When someone first visits a signup page, I want them to see a popup
that says they can sign up within the next 30 days without having to
pay an appication fee. Then each time they revisit over the next 30
days, the popup displays a message that says "X days left to save."

Finally, after the 30 days expires, they need to go to a different
signup page...one that contains and requires the signup fee.

I get the set cookie concept. Does the popup get generted within the
get cookie script? And what about sending people to the other page
after 30 day? Is that a different script? Do I need a more persistant
cookie to distinguish between new visitors and someone who has already
hit the page and did not signup within 30 days?

All help / suggestions appreciated!

You may need to rething this security. I could appear to become a new user
after 30 days by simply deleting your cookie.
 
D

DJ WIce

<snip>
: Then each time they revisit over the next 30
: days, the popup displays a message that says "X days left to save."
</snip>
: All help / suggestions appreciated!

It's better to use a serverside script that is IP dependent.
Else you can be shure that if they want to sign up, they will delete the
cookie.
Or maybe they have a clean up program that does that every time for them.

But well, I don't think it might be a big problem if they will get the same
"discount" if they sign-up after 40 days, is it?

Wouter
 
F

Fred

Richard Formby said:
You may need to rething this security. I could appear to become a new user
after 30 days by simply deleting your cookie.

It's OK if someone deletes the cookie. The whole idea is to use the
popup & 30 day offer to encourge sign up. If someone wants to delete
cookie, so be it. Just like if they hit the site from another machine
to get another 30 day offer.

That said, can you offer any suggestions on script(s) that will
accomplish what I need to do?
 
D

DJ WIce

: It's OK if someone deletes the cookie. The whole idea is to use the
: popup & 30 day offer to encourge sign up. If someone wants to delete
: cookie, so be it. Just like if they hit the site from another machine
: to get another 30 day offer.
:
: That said, can you offer any suggestions on script(s) that will
: accomplish what I need to do?

Such script sould be freely available via www.javascriptsource.com
(or just copy it from the page that gave you the idea).

Wouter
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,431
Messages
2,571,679
Members
48,796
Latest member
Greg L.

Latest Threads

Top