[resolved] Keep getting logged out on moving to new page (3 posts)

  1. loiswakeman
    Posted 5 years ago #

    I have some pages on my site that should only be visible to registered users. There is a page called "members" (in the menu) and sub-pages (not in the menu to save clutter).

    I tried both "Members" and "Page Restrict" plugins, but in both cases, as soon as you go from one members-only page to another, you are logged out (from the frontend and the backend) and have to log in again to see any other restricted page. Members is preferred, as I want to allow editing as well as viewing by page.

    Clearing cookies doesn't help, nor does removing "Sidebar Login", which I thought might be interacting.

    Other plugins I am using are "Link to Post" and WP Table reloaded".

    Any clues or suggestions for a WP newbie would be much appreciated.

  2. loiswakeman
    Posted 5 years ago #


  3. loiswakeman
    Posted 5 years ago #

    I fixed it myself in the end - the problem is caused by using wp_list_pages to restrict what appears in the sidebar menu.

    Any pages not in the list to display, and whose access is controlled by the Members plugin, have problems. That is, you follow any of the internal links on such pages and appear to be logged out - you cannot see the restricted content, and get a sidebar prompt to log in. But as soon as you go to a page that is in the list, it is apparent that you are still logged in.

    I have no idea how to alter this behaviour, so will just stop hiding members only pages from the public.

Topic Closed

This topic has been closed to new replies.

About this Topic