Page 13 of 21 FirstFirst ... 31112131415 ... LastLast
Results 121 to 130 of 209
  1. #121
    Join Date
    Aug 2009
    Posts
    368
    Plugin Contributions
    0

    Default Re: Is a Permanent Login (Auto-Login) Possible?

    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

  2. #122
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    12,474
    Plugin Contributions
    88

    Default Re: Is a Permanent Login (Auto-Login) Possible?

    @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 ...

  3. #123
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    12,474
    Plugin Contributions
    88

    Default Re: Is a Permanent Login (Auto-Login) Possible?

    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.

  4. #124
    Join Date
    Aug 2009
    Posts
    368
    Plugin Contributions
    0

    Default Re: Is a Permanent Login (Auto-Login) Possible?

    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

  5. #125
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    12,474
    Plugin Contributions
    88

    Default Re: Is a Permanent Login (Auto-Login) Possible?

    Quote Originally Posted by solo_400 View Post
    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.

  6. #126
    Join Date
    Aug 2009
    Posts
    368
    Plugin Contributions
    0

    Default Re: Is a Permanent Login (Auto-Login) Possible?

    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.

  7. #127
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    12,474
    Plugin Contributions
    88

    Default Re: Is a Permanent Login (Auto-Login) Possible?

    Quote Originally Posted by solo_400 View Post
    I have installed on my live store.

    Is there any debug activated? I have a remember_me.log in log directory increasing fast.
    Darn it; I forgot to remove that debug code. Edit /includes/classes/observers/class.remember_me_observer.php, finding this section:
    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;
        }
    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 ...

  8. #128
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    12,474
    Plugin Contributions
    88

    Default Re: Is a Permanent Login (Auto-Login) Possible?

    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.

  9. #129
    Join Date
    Aug 2009
    Posts
    368
    Plugin Contributions
    0

    Default Re: Is a Permanent Login (Auto-Login) Possible?

    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 ?

  10. #130
    Join Date
    Aug 2009
    Posts
    368
    Plugin Contributions
    0

    Default Re: Is a Permanent Login (Auto-Login) Possible?

    Something doesn't work. If I close the browser and open it after some minutes, ask for login :-(

 

 
Page 13 of 21 FirstFirst ... 31112131415 ... LastLast

Similar Threads

  1. Admin auto login for a cron job
    By Gigo in forum Customization from the Admin
    Replies: 20
    Last Post: 9 Aug 2012, 07:39 AM
  2. Is there a way to auto-login to admin?
    By mikejd in forum General Questions
    Replies: 4
    Last Post: 3 Nov 2009, 09:55 AM
  3. Auto-switching DB login to end 1226 Error
    By Camarilladee in forum Basic Configuration
    Replies: 7
    Last Post: 2 Jun 2006, 05:56 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR