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 2 of 2
  1. #1
    New Coder
    Join Date
    Sep 2004
    Posts
    60
    Thanks
    1
    Thanked 0 Times in 0 Posts

    setting cookies with php and suse linux

    I've set up a local development server on my desktop with Suse Linux, php, Mysql, apache.

    For some reason, setcookie is not being invoked when I call it. I know this is the case because in Firefox I set the cookies setting to prompt me everytime a cookie request occurs, and I never get that prompt.

    Could it be a conflict with seeing localhost as a valid domain?

    I'm not sure where to start or look here.

    Thanks for any help.

  • #2
    New Coder
    Join Date
    Sep 2004
    Posts
    60
    Thanks
    1
    Thanked 0 Times in 0 Posts
    Found an answer, applied it and it worked:

    "localhost will not store cookies, the RFC will not allow it because you are using a name resolution and that name doesn't have an extension. Cookies are designed for second level and down. First level domains will not work. Hence localhost has no root extension. But you can get around this by using an IP address like http://127.0.0.1/sites/sitename/default.aspx

    If you try this address it should work. 127.0.0.1 is your computer. "


  •  

    Posting Permissions

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