I get an error on the select, it is not recognizing my session variable.
Is there another way to do this?
I have created a faily complex pickleball ladder system with this kind of query using your data access system.
My queries however were created externally, it would be nice to be able to create them here.
I know that WordPress now prefers if developers don’t use native PHP session variables, but is there a built-in alternative that can be used? I can’t find anything about such a system.
I’m happy to make my own system that uses the database and cookies to emulate sessions but if WordPress has a ready made system in place I’ll use that.
Thanks for any info
]]>Need some help with PHP. I have already described the problem here:-
https://stackoverflow.com/questions/57552628/need-to-understand-whether-i-should-be-using-session-variables-for-php.
If anyone can advise that would be much appreciated!
Thanks!
]]>Always like to start off by saying love the plugin. I’ve got a site running WordPress and Autoptimize. The site uses WooCommerce and products are filtered by two store locations. The site uses session variables to set the location. If the session var is one location or another the main query is adjusted to include that location. Is there anyway to account for this using autoptimize? So essentially this URL product-category/arm-chair/ might show three different things 1) All the products in that category, 2) all the products in that category at location 1, and 3) all the products in that category at location 2.
Thanks much for the help and support.
]]>Anyone have any simple suggestions for this?
Thanks, in advance, for the help…
]]>Thanks
https://www.ads-software.com/plugins/forms-3rdparty-integration/
]]>I have an issue with the above plugin (WP Session Manager) where the session variables I set, are not always set. I know the PHP I’m using to set the variables is correct as they do work sometimes. But for example, I can have them working perfectly fine and echo’ed out to the screen as a test, then I ‘logout’ and blank all the variables by setting them to “”, then log back in (and set them again) but they do not get echo’ed out this time, meaning they must not be set.
I know one works for definite, as it is used to see if the user is logged in or not, and I only get asked to log in on my site once, I can navigate around pages etc, close the browser and I’m only asked to log back in when I use my logout button to blank the variables.
Does anyone know what might be causing this please? Or is it going to be something very hard to diagnose?
Don’t know if it will help or not (to fix the issue), with regards to editing the session timeout time, I see that there is the info on the FAQ page of the plugin, saying 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
Thanks!
https://www.ads-software.com/plugins/wp-session-manager/
]]>