WP Session Word Variables Not Always Set

I had a problem with the above plugin (WP Session Manager) in which session variables are set that are not always set. I know that PHP, which I use to set variables correctly, as they sometimes work. But, for example, I can make them work fine and exit the screen as a test, then "exit" and clear all the variables by setting them to "", then go back in (and set them again) but this time they don’t receive an echo, that is, they should not be installed.

I know that one works for a certain one, since it is used to find out if a user is registered or not, and they only ask me to enter my site once, I can navigate pages, etc., close the browser and I’ll m just asked to log in when i use the logout button to clear the variables.

Does anyone know what might cause this, please? Or will it be very difficult to diagnose?

I don’t know if this will help or not (to fix the problem), regarding changing the session timeout, I see that on the plugin’s frequently asked questions page there is information that it can be edited using this filter

add_filter( 'wp_session_expiration', function() { return 60 * 60; } ); // Set expiration to 1 hour

But where is this filter found / edited or added?

Hope someone can help with the problem :)

Thank!

0
1

. , 1 , , .

0

Source: https://habr.com/ru/post/1541644/


All Articles