Results 1 to 3 of 3
  1. #1
    Join Date
    Nov 2005
    Location
    los angeles
    Posts
    1,392
    Plugin Contributions
    2

    Default expected behavior?

    it seems that when the session times out using the jAlert/javascript, the camefrom parameter automatically gets reset to index.php.

    the camefrom parameter is one of the nicer "new" features (at least to me); and it would be nice if it was kept when the javascript alert takes over the screen after a session timeout.

    if this behavior is not expected i will do my own troubleshooting to determine where i went adrift...
    no good deed goes unpunished. help out with the green....

  2. #2
    Join Date
    Jul 2012
    Posts
    13,376
    Plugin Contributions
    16

    Default Re: expected behavior?

    Quote Originally Posted by carlwhat View Post
    it seems that when the session times out using the jAlert/javascript, the camefrom parameter automatically gets reset to index.php.

    the camefrom parameter is one of the nicer "new" features (at least to me); and it would be nice if it was kept when the javascript alert takes over the screen after a session timeout.

    if this behavior is not expected i will do my own troubleshooting to determine where i went adrift...
    I haven't been able to find the conversation; however, when I brought up this operation was advised that everything was okay and no changes.

    The way "around" the issue is to refresh the page or use the uri in the browser instead of selecting the login/continue button.

    Of course there still is the occasional lack of application of the camefrom parameter. I still occasionally when last on the developers tool kit, session times out, reload and after login am plopped back in the admin main page rather than at the developers tool kit.
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...
    Upgraded to Zen Cart V1.5.3 from V1.5.1 from V1.5.0 from V1.3.9h

  3. #3
    Join Date
    Nov 2005
    Location
    los angeles
    Posts
    1,392
    Plugin Contributions
    2

    Default Re: expected behavior?

    so, it is expected behavior. and thanks for the work-arounds.

    for those who do not want use the work-around, one can change the code in:

    YOUR_ADMIN/includes/keepalive_module.php

    as such:

    PHP Code:
    <?php
    // Read default timeout value from the site's configuration:
    $timeoutAfter ini_get('session.gc_maxlifetime');
    if ((int)
    $timeoutAfter 30$timeoutAfter 1440;

    //new line:
    $camefrom "'" basename($PHP_SELF) . (empty(zen_get_all_get_params()) ? '' '?' zen_get_all_get_params()) . "'";
    ?>

    //modified line later in code:

    'loginUrl': <?= $camefrom?>, //URL to send a customer to when they want to log back in
    best.
    no good deed goes unpunished. help out with the green....

 

 

Similar Threads

  1. Products Expected adds 2034 expected date
    By RobertG in forum General Questions
    Replies: 1
    Last Post: 6 Feb 2011, 01:00 AM
  2. expected products
    By tomharto in forum Setting Up Categories, Products, Attributes
    Replies: 0
    Last Post: 5 Nov 2009, 01:38 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