Forums

AJAX all-time returns the content for the not logged user (2 posts)

  1. artnik7
    Member
    Posted 6 months ago #

    I'm doing Ajax authorization for WP. Principle is simple:
    On Ajax login or logout WP returns the current html page (only body tag) for logged (or vice versa) user. After that, existing html is replaced by JavaScript.

    For some reason, when entering or exit Ajax always returns the page only for NOT logged user, regardless of whether the user is authorized.

    is_user_logged_in() always returns false.

    Can you please tell where could be the problem? Thanks

  2. artnik7
    Member
    Posted 5 months ago #

    Any body here?

Reply

You must log in to post.

About this Topic