Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

setcookie não funciona

Discussion in 'Discussões em Português' started by cucafelix, Jul 22, 2016.

  1. cucafelix

    cucafelix Registered

    Joined:
    Jul 22, 2016
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Portugal
    cPanel Access Level:
    Website Owner
    Eu utilizo uma cookie após os utilizadores fazerem login no meu site:

    setcookie('skyvee', $email, time()+60*60*24*365);

    também já tentei:
    $domain = ($_SERVER['HTTP_HOST'] != 'localhost') ? $_SERVER['HTTP_HOST'] : false;
    setcookie('skyvee', $email, time()+60*60*24*365, '/', $domain, false);


    Quando o meu site estava hospedado no hostinger, tudo dava certo. Agora estou num servidor que comprei onde uso o cPanel e deixou de funcionar... A página fica em branco no momento de criar a cookie, e esta não é sequer criada :(
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    43,660
    Likes Received:
    1,787
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    This seems related to the actual script as opposed to the cPanel software. Have you reported the issue to your web hosting provider so they can take a closer look?

    Thank you.

    Translation:

    Olá,

    Isto parece estar relacionado com o script real em oposição ao software cPanel. você relatou a questão ao seu provedor de hospedagem web para que eles possam dar uma olhada?

    Obrigado.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice