Custom PHP function - users cannot log out

I'm using custom function on my site. Some part of that php code makes the issue - when user is logged in it cannot be log out.

Please check chat transcript.
Thank you

  • Ash
    • WordPress Hacker

    Hello Gabe

    Thanks for sending details. But I could not login using your FTP access, I was getting timeout error.

    Is there any country restriction? If so, I am from Bangladesh if it helps.

    So, would you please check and send me updated information?

    You can send me privately in the following format:
    1. Please go to https://premium.wpmudev.org/contact/#i-have-a-different-question
    2. Select "I have a different question" if not selected
    3. In subject line put "Attn-Ash" (this will ensure that the email is assigned to me)
    4. Provide the wanted details.
    5. Add the thread link in the message so that I can track.

    Have a nice day!

    Cheers,
    Ash

  • Gabe
    • New Recruit

    Hi Ash,

    We actually figured it out. We changed the action from wp to template_redirect and commented out these lines from wp-content.

    //define('ADMIN_COOKIE_PATH', '/');
    //define('COOKIE_DOMAIN', '');
    //define('COOKIEPATH', '');
    //define('SITECOOKIEPATH', '');

    That seemed to correct the issue.

    Thanks!

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.