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

Thread: PHP and Cookies

  1. #1
    New Coder
    Join Date
    Jan 2004
    Posts
    13
    Thanks
    0
    Thanked 0 Times in 0 Posts

    PHP and Cookies

    Greetings

    I'm trying to develop my site using cookies and I use on my script the code

    setcookie("mycookie", $theValue, time()+36000);

    and I see that a file "administração/" is on my Temporary
    Internet Files directory (I'm using Windows XP). Shouldn't be instead a file like
    Cookie:sgalmeida@localhost?

    Am I doing something wrong? Is there a problem if the file is just "administração/"??

    Thanks

    Sergio Almeida

  • #2
    Super Moderator
    Join Date
    May 2002
    Location
    Perth Australia
    Posts
    4,040
    Thanks
    10
    Thanked 92 Times in 90 Posts
    check setcookie in the manual.
    You need to set the cookie domain , its one of the optional parameters.
    resistance is...

    MVC is the current buzz in web application architectures. It comes from event-driven desktop application design and doesn't fit into web application design very well. But luckily nobody really knows what MVC means, so we can call our presentation layer separation mechanism MVC and move on. (Rasmus Lerdorf)


  •  

    Posting Permissions

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