Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 7 of 7
  1. #1
    New to the CF scene
    Join Date
    Dec 2009
    Posts
    5
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Exclamation .htaccess and cookies?

    Hi peeps, I have just created my .htaccess files and know need to create some client-side cookies. What I am trying to do is with Paypal and my site. I need to allow a user to bypass .htaccess with a cookie that expires immediatley so they cant refresh page or go back. So on my Paypal HTML button code I want to add the cookie/script that allows them limited access to page and then in my .htaccess a script to vaildate?. Help with this will be much appreciated. Thanks

  • #2
    Supreme Master coder! Old Pedant's Avatar
    Join Date
    Feb 2009
    Posts
    25,155
    Thanks
    75
    Thanked 4,338 Times in 4,304 Posts
    This is the *JAVA* forum.

    Your question appears to be about javaSCRIPT.

    About the only thing the two languages have in common (any more than they share C-style syntax) is the first four characters of their names.
    An optimist sees the glass as half full.
    A pessimist sees the glass as half empty.
    A realist drinks it no matter how much there is.

  • #3
    God Emperor Fou-Lu's Avatar
    Join Date
    Sep 2002
    Location
    Saskatoon, Saskatchewan
    Posts
    16,987
    Thanks
    4
    Thanked 2,660 Times in 2,629 Posts
    Hold on pedant, this could be in JSP. Although I am also leaning towards this being a javascript related problem, I'll wait for the OP to indicate if this is related to javascript or JSP. I think that it will be javascript though; all of this control can be done using sessions which is of course only available with server side technologies.
    PHP Code:
    header('HTTP/1.1 420 Enhance Your Calm'); 

  • #4
    Supreme Master coder! Old Pedant's Avatar
    Join Date
    Feb 2009
    Posts
    25,155
    Thanks
    75
    Thanked 4,338 Times in 4,304 Posts
    Well, I relied on this part of the message:
    So on my Paypal HTML button code I want to add the cookie/script that
    "button code" and "cookie/script" sure sound client-side to me.

    But okay, let's wait and see.
    An optimist sees the glass as half full.
    A pessimist sees the glass as half empty.
    A realist drinks it no matter how much there is.

  • #5
    God Emperor Fou-Lu's Avatar
    Join Date
    Sep 2002
    Location
    Saskatoon, Saskatchewan
    Posts
    16,987
    Thanks
    4
    Thanked 2,660 Times in 2,629 Posts
    Quote Originally Posted by Old Pedant View Post
    Well, I relied on this part of the message:
    "button code" and "cookie/script" sure sound client-side to me.

    But okay, let's wait and see.
    You're right, I missed that. It sure does sound like a javascript problem now. I think its still best to wait for confirmation, then I'll look at moving.
    PHP Code:
    header('HTTP/1.1 420 Enhance Your Calm'); 

  • #6
    Supreme Master coder! Old Pedant's Avatar
    Join Date
    Feb 2009
    Posts
    25,155
    Thanks
    75
    Thanked 4,338 Times in 4,304 Posts
    He moved it himself to the JS forum.

    That is, he duplicated the post there.
    An optimist sees the glass as half full.
    A pessimist sees the glass as half empty.
    A realist drinks it no matter how much there is.

  • #7
    God Emperor Fou-Lu's Avatar
    Join Date
    Sep 2002
    Location
    Saskatoon, Saskatchewan
    Posts
    16,987
    Thanks
    4
    Thanked 2,660 Times in 2,629 Posts
    Thanks for letting me know, I'll close this one.
    PHP Code:
    header('HTTP/1.1 420 Enhance Your Calm'); 


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •