Need cookie & script

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Fred

    Need cookie & script

    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!
  • Richard Formby

    #2
    Re: Need cookie & script


    "Fred" <koalabarry@yah oo.com> wrote in message
    news:bb7ad7bb.0 401251835.3eac3 9c4@posting.goo gle.com...[color=blue]
    > 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![/color]

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


    Comment

    • DJ WIce

      #3
      Re: Need cookie &amp; script

      <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


      Comment

      • Fred

        #4
        Re: Need cookie &amp; script

        "Richard Formby" <rf302@cueword. com.au> wrote in message news:<Jn%Qb.281 57$Wa.19386@new s-server.bigpond. net.au>...[color=blue]
        > "Fred" <koalabarry@yah oo.com> wrote in message
        > news:bb7ad7bb.0 401251835.3eac3 9c4@posting.goo gle.com...[color=green]
        > > 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![/color]
        >
        > You may need to rething this security. I could appear to become a new user
        > after 30 days by simply deleting your cookie.[/color]

        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?

        Comment

        • Dennis M. Marks

          #5
          Re: Need cookie &amp; script

          I have read the following message from koalabarry@yaho o.com (Fred)
          and have decided to lend my vast knowledge.

          The writer said:[color=blue]
          > 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!
          >[/color]

          and my reply is:
          What you want to do is fairly simple and I'm sure someone will soon
          point out how to do it but what if...

          If someone turned off cookies or just deleted them after visiting your
          page couldn't they just go there forever?

          How would you indicate that they paid? Modify the cookie? What if they
          delete it by mistake?

          I think whatever you want to do must be at the server end.

          --
          Dennis M. Marks

          Replace domain.invalid with dcsi.net


          -----= Posted via Newsfeeds.Com, Uncensored Usenet News =-----
          http://www.newsfeeds.com - The #1 Newsgroup Service in the World!
          -----== Over 100,000 Newsgroups - 19 Different Servers! =-----

          Comment

          • DJ WIce

            #6
            Re: Need cookie &amp; script


            : 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


            Comment

            Working...