I am getting issue in wordpress session where I am setting up the
session value on ajax request and the value is initialized as it
required but when I try to check this value after refreshing the
current tab. This value is reset. I observed two things in that:

  1. If I try to fetch session value on the same page it is accessible
    but in case of another page it is not accessible.

  2. If the admin is logged in into wp then everything is working fine. I
    am getting the value as I required.

I also used to try this code on another wordpress and it works fine.
Please let me know if there is any issue related to the permissions
or anything else.

Read more here: session value is not accessible in another page when admin is logged out in wordpress


Solution:

If you know the solution of this issue, please leave us a reply in Comment section, to update the question.


Wordpress related questions and answers: