Cookies problem

Discussion in 'PHP' started by turulojko, Feb 22, 2008.

  1. #1
    The CMS i work on it use cookies...
    When i use it local (on my PC) it works good, but when i upload it to web server not works (don't create cookies).

    *The server works with cookies, i know because i've installed Wordpres, forum...
    Any ideas? :confused:
     
    turulojko, Feb 22, 2008 IP
  2. LittleJonSupportSite

    LittleJonSupportSite Peon

    Messages:
    386
    Likes Received:
    20
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Double check and see if register_globals is on and if they are blocking session creation in a specific folder tmp location etc.
     
    LittleJonSupportSite, Feb 22, 2008 IP
  3. turulojko

    turulojko Peon

    Messages:
    11
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    I use:

    if (isset($_COOKIE["test"]))

    and now i change it to:
    if (isset($HTTP_COOKIE_VARS["test"]))

    i thing it will works :)
     
    turulojko, Feb 22, 2008 IP
  4. dansgalaxy

    dansgalaxy Peon

    Messages:
    37
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    That shows that your server is very out of date and has security issues, you should look at getting php5 hosting or a better web host.
     
    dansgalaxy, Feb 22, 2008 IP
  5. turulojko

    turulojko Peon

    Messages:
    11
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    PHP version: 4.4.7
    What is the last version?
     
    turulojko, Feb 22, 2008 IP
  6. dansgalaxy

    dansgalaxy Peon

    Messages:
    37
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #6
    PHP 5.2.X is the latest but PHP 6 will be upon us soon.

    alot of security issues are secured by default on this from what i know.

    $_COOKIE and $_SESSION and all that should work on php 4 if the ini is configerd better but it seems they are turned off... which isnt that clever...


    (honestly trying not to make this sound like a plug)
    If you want PM what you currently get with your package and price (please include link) and i will see about beating it ;)
    Dan
     
    dansgalaxy, Feb 22, 2008 IP