Cookie Issue in Subfolder Setup
-
Hi,
I am using this plugin on my development server, where some development sites are running in sub-folder with the main setup on the root of hosting. And, I am using plugins from a single location on the root of hosting for all sites in sub-folder.
I am facing issue with the cookie when trying to access compare list in main setup and sub-folder setups.
So, in “__construct” function, I made a small change in code. The code is as below.
OLD:// set coookiename if ( is_multisite() ){ $this->cookie_name .= '_' . get_current_blog_id(); }
NEW:
// set coookiename if ( is_multisite() ){ $this->cookie_name .= '_' . get_current_blog_id(); }else{ if( COOKIEPATH != '/' ){ $this->cookie_name .= '_' . sanitize_title(COOKIEPATH); } }
Hope, you will get the issue I am facing, and the fix will be added in next version.
Thanks
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Cookie Issue in Subfolder Setup’ is closed to new replies.