Page 14 of 21 FirstFirst ... 41213141516 ... LastLast
Results 131 to 140 of 209
  1. #131
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    12,489
    Plugin Contributions
    88

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

    Quote Originally Posted by solo_400 View Post
    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 ?
    Quote Originally Posted by solo_400 View Post
    Something doesn't work. If I close the browser and open it after some minutes, ask for login :-(
    I'll look at these later today.

  2. #132
    Join Date
    Dec 2007
    Location
    Payson, AZ
    Posts
    1,076
    Plugin Contributions
    15

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

    Thanks for the update..

    Working fine for me, added additional places for COWAA so its on login, register, create and no accounts. added a peek-a-boo instructions, but not getting FontAwesome icons to show, will have to play with that some more.

    ZC1.5.5e
    COWAA
    PHP7.1
    FireFox v56.0 on Ubuntu

    Cookie does what the browsers settings are. Deletes on logoff, still there on browsers close/reopen. If browser is set to delete cookies on session end, it deletes the remember me cookie too. No added code to prevent non-account users from triggering it.
    Dave
    Always forward thinking... Lost my mind!

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

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

    Quote Originally Posted by davewest View Post
    Thanks for the update..

    Working fine for me, added additional places for COWAA so its on login, register, create and no accounts. added a peek-a-boo instructions, but not getting FontAwesome icons to show, will have to play with that some more.

    ZC1.5.5e
    COWAA
    PHP7.1
    FireFox v56.0 on Ubuntu

    Cookie does what the browsers settings are. Deletes on logoff, still there on browsers close/reopen. If browser is set to delete cookies on session end, it deletes the remember me cookie too. No added code to prevent non-account users from triggering it.
    Thanks back at you for giving it a whirl. What do you mean by the highlighted sentence?

  4. #134
    Join Date
    Dec 2007
    Location
    Payson, AZ
    Posts
    1,076
    Plugin Contributions
    15

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

    Quote Originally Posted by lat9 View Post
    Thanks back at you for giving it a whirl. What do you mean by the highlighted sentence?
    Tested to see if during non-account checkout if it could get triggered to save that account for auto log in.. Just a safety check, even non-account checkouts do create accounts.. and the no account page has a password field where I added the remember me checkbox.
    Dave
    Always forward thinking... Lost my mind!

  5. #135
    Join Date
    Aug 2009
    Posts
    368
    Plugin Contributions
    0

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

    On firefox and chrome in my ipad it seems ok till now. Hope problems i reported before, were because an old chrome version.

    I have another question : why between browsers content cart is not syncronized? Products added to cart in a browser are not visible in cart when I check on other browser. Evident, always logged on.

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

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

    @Lat9 - on Chrome is not working. I tried from 2 different pc, different chrome versions and s.o. After a while ( hours I think ) is asking for login again. Can you check please ?

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

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

    Quote Originally Posted by solo_400 View Post
    @Lat9 - on Chrome is not working. I tried from 2 different pc, different chrome versions and s.o. After a while ( hours I think ) is asking for login again. Can you check please ?
    It wouldn't be the first time that Chrome threw a wrench into the session-related handling. I've noted the request and will investigate later this week.

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

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

    Quote Originally Posted by solo_400 View Post
    On firefox and chrome in my ipad it seems ok till now. Hope problems i reported before, were because an old chrome version.

    I have another question : why between browsers content cart is not syncronized? Products added to cart in a browser are not visible in cart when I check on other browser. Evident, always logged on.
    That's not within the realm of the plugin's processing. A cookie is set in the browser being used to access the site and used to manage that session, essentially keeping that specific session alive.

    If you access the site using FireFox, then a cookie is created in the FireFox browser for that browser's use; if accessed via Chrome, then the cookie is going be created within Chrome's browser-history, available only Chrome's processing.

    Quote Originally Posted by solo_400 View Post
    @Lat9 - on Chrome is not working. I tried from 2 different pc, different chrome versions and s.o. After a while ( hours I think ) is asking for login again. Can you check please ?
    I've checked the basic handling, using Zen Cart 1.5.5e and the responsive_classic template, for Chrome and did not find any issue.

    What I did was:

    1. Login, ticking the "Remember me?" box.
    2. Added a product to my cart.
    3. Went to checkout (sitting on the checkout_shipping page)
    4. Went away for a while, allowing the session to expire.
    5. Came back, clicked the "Continue" button and proceeded to Checkout/Payment.


    If you'll provide a specific set of actions that you've taken to reproduce the issue, I can make more progress.

  9. #139
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    12,489
    Plugin Contributions
    88

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

    Quote Originally Posted by lat9 View Post
    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 ...
    v1.4.4 has been submitted to the plugins for review. I'll post back here once its available.

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

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

    Quote Originally Posted by lat9 View Post

    I've checked the basic handling, using Zen Cart 1.5.5e and the responsive_classic template, for Chrome and did not find any issue.

    What I did was:

    1. Login, ticking the "Remember me?" box.
    2. Added a product to my cart.
    3. Went to checkout (sitting on the checkout_shipping page)
    4. Went away for a while, allowing the session to expire.
    5. Came back, clicked the "Continue" button and proceeded to Checkout/Payment.


    If you'll provide a specific set of actions that you've taken to reproduce the issue, I can make more progress.
    Remember I gave you an account test on my live store? Can you do the same steps on my live store ?

    I have Zen Cart 1.5.5, Database Patch Level: 1.5.5 ( not e ) Can you give me the changes 2 overwrite template files for version 1.5.5 please ?

    thank you

 

 
Page 14 of 21 FirstFirst ... 41213141516 ... 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