My live store address: http://bit.ly/1UEDgkc
PHP Version: 5.4.45
I had no problem to install / config. / adjust template of the module.
thx
My live store address: http://bit.ly/1UEDgkc
PHP Version: 5.4.45
I had no problem to install / config. / adjust template of the module.
thx
@solo_400, I see the issue. Multiple cookies are being generated for each pseudo-subdirectory that is introduced by your URL mangler.
That is, on initial sign-in, the cookie is created for www.yoursite.com/shop. When I navigate to the bijuterii-din-argint/pandantive-de-argint/pandantiv-pentru-bratara-tip-charm-model-tip-murano-cod-387 product, a cookie is created for www.yoursite.com/shop/bijuterii-din-argint/pandantive-de-argint.
Let me investigate a bit further ...
Phew! You were quite correct @solo_400 ... the plugin did not work!
I've submitted v1.4.3 to the Zen Cart Plugins for review; it can be downloaded here (https://www.zen-cart.com/downloads.php?do=file&id=332) once reviewed.
This release drops support for Zen Cart versions prior to 1.5.5 and contains the changes associated with the following GitHub issues:
#4: Cart emptied on session timeout.
#5: Specify domain and path for cookie (interoperation with URL modifiers).
#6: Apply PSR-2 styling to plugin-specific files.
#7: Capture session values for restoration.
#8: Use Zen Cart 1.5.5e as the change-basis for template-override changes.
You can download this version from the plugin's GitHub repository (https://github.com/lat9/remember_me/releases/tag/v1.4.3) if you want a "preview". I'll update this thread when the plugin is available from Zen Cart.
Great lat9, I was waiting for a feedback :-)
1. Can I install this new version without running remember_me_uninstall.sql ?
2. tpl_login_default.php and tpl_modules_create_account.php are the same of 1.4.2 version ?
thank you
You can upgrade without running the uninstall SQL, but the template-override files have changed from 1.4.2 to add changes introduced in Zen Cart 1.5.5e. If you have already installed (and possibly merged those files with your custom changes), you don't need to update those template files.
You can view the plugin's current readme here.
I have installed on my live store.
Is there any debug activated? I have a remember_me.log in log directory increasing fast.
Last edited by solo_400; 22 Oct 2017 at 12:50 PM.
Darn it; I forgot to remove that debug code. Edit /includes/classes/observers/class.remember_me_observer.php, finding this section:
and commenting-out those debug lines:Code:protected function encodeCookie($cookie_data) { $cookie_data['currency'] = $_SESSION['currency']; $cookie_data['language'] = $_SESSION['language']; $cookie_data['languages_id'] = $_SESSION['languages_id']; $cookie_data['languages_code'] = $_SESSION['languages_code']; $cookie_data['cartIdSet'] = isset($_SESSION['cartID']); $cookie_data['securityToken'] = $_SESSION['securityToken']; error_log(date('Y-m-d H:i:s') . " encodeCookie: " . var_export($cookie_data, true) . PHP_EOL, 3, DIR_FS_LOGS . '/remember_me.log'); return base64_encode(gzcompress(serialize($cookie_data), 9)); } protected function removeCookie() { $this->setCookie('', time() - 3600); } protected function decodeCookie() { $remember_info = false; if (isset($_COOKIE[$this->cookie_name])) { $remember_info = base64_decode($_COOKIE[$this->cookie_name]); if ($remember_info !== false) { $remember_info = gzuncompress($remember_info); if ($remember_info !== false) { $remember_info = unserialize($remember_info); } } } error_log(date('Y-m-d H:i:s') . " decodeCookie: " . var_export($remember_info, true) . PHP_EOL, 3, DIR_FS_LOGS . '/remember_me.log'); return $remember_info; }
I'll get an update going ...Code:protected function encodeCookie($cookie_data) { $cookie_data['currency'] = $_SESSION['currency']; $cookie_data['language'] = $_SESSION['language']; $cookie_data['languages_id'] = $_SESSION['languages_id']; $cookie_data['languages_code'] = $_SESSION['languages_code']; $cookie_data['cartIdSet'] = isset($_SESSION['cartID']); $cookie_data['securityToken'] = $_SESSION['securityToken']; // error_log(date('Y-m-d H:i:s') . " encodeCookie: " . var_export($cookie_data, true) . PHP_EOL, 3, DIR_FS_LOGS . '/remember_me.log'); return base64_encode(gzcompress(serialize($cookie_data), 9)); } protected function removeCookie() { $this->setCookie('', time() - 3600); } protected function decodeCookie() { $remember_info = false; if (isset($_COOKIE[$this->cookie_name])) { $remember_info = base64_decode($_COOKIE[$this->cookie_name]); if ($remember_info !== false) { $remember_info = gzuncompress($remember_info); if ($remember_info !== false) { $remember_info = unserialize($remember_info); } } } // error_log(date('Y-m-d H:i:s') . " decodeCookie: " . var_export($remember_info, true) . PHP_EOL, 3, DIR_FS_LOGS . '/remember_me.log'); return $remember_info; }
FWIW, the update is now available on the plugin's GitHub repository: https://github.com/lat9/remember_me
I'll upload that to the Zen Cart plugins over the next couple of days.
ok done.
Now another one:
zcrm_ cokie is never removed, I can see it ( chrome ), there when I visit the store and I'm not logged and even when I logout. Is this normal ?
Something doesn't work. If I close the browser and open it after some minutes, ask for login :-(
Bookmarks