Results 1 to 8 of 8
  1. #1
    Join Date
    Apr 2011
    Posts
    22
    Plugin Contributions
    0

    Default Impossible checkout (Immediate expired session) after server move

    Hi,

    A few days ago, I asked to my hosting company if my server was OK for the new Paypal changes (Paypal sent me an e-mail telling me that I should check them all):

    TLS 1.2 HTTP/1.1 requirement
    HTTPS requirement for IPN Postback
    Discontinue GET Method for Classic API
    etc.

    They told me that my server was too old, and they offered me to change to a new one. I accepted. After the change of server, the store had two problems:

    1) Some characters didn't show properly
    2) The sessions expired immediately, after clicking at any link of the store (so checkout is impossible).

    I though it would be a good excuse to upgrade my store to the last version, so I proceed.
    The character set problem was solved, but the expired session problem was still there.

    After that, I decided to install a clean new copy of ZC, with a default database, and the expired session problem persists. No addons, no templates, no changes in code (just both configuration.php files).

    I don't know what to do. Any help would be appreciated. Server and ZC versions below.
    Thank you in advance!
    Xavier.

    Server data:

    Server Host: comp22.cyberneticos.com (164.138.208.220)Server OS: Linux 2.6.32-673.8.1.lve1.4.3.1.el6.x86_64 Server Date: 07/25/2016 16:23:13 Server Up Time: 16:23:13 up 33 days, 4:39, 0 users, load average: 1.18, 1.11, 1.14HTTP Server: Apache/2PHP Version: 5.6.16 (Zend: 2.6.0)PHP File Uploads: OnUpload Max Size: 2MPHP Memory Limit: 128MPOST Max Size: 8MDatabase: MySQL 10.0.26-MariaDBDatabase Host: localhost (127.0.0.1)Database Date: 07/25/2016 16:23:13Database Data Size: 507 kBDatabase Index Size: 640 kBMySQL Slow Query Log Status: OnMySQL Slow Query Log File: comp22-slow.logMySQL Mode: (None set)

    Zen Cart 1.5.5a
    Database Patch Level: 1.5.5
    v1.5.5a [2016-07-25 13:54:42] (New Installation-v155a)
    v1.5.5a [2016-07-25 13:54:42] (New Installation-v155a)

  2. #2
    Join Date
    Jul 2012
    Posts
    16,436
    Plugin Contributions
    17

    Default Re: Impossible checkout (Immediate expired session) after server move

    Helpful info:
    Settings in configuration->sessions
    Host?
    Thinking maybe session related info available from phpinfo(): (normally available in admin at version button, but probably unable to get there based on the current issue) can create a file with the following info in it:
    Code:
    <?php echo phpinfo();
    access the file from the Web, provide associated info.

    Do you have cookies disabled on your browser or computer?
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  3. #3
    Join Date
    Apr 2011
    Posts
    22
    Plugin Contributions
    0

    Default Re: Impossible checkout (Immediate expired session) after server move

    Quote Originally Posted by mc12345678 View Post
    Helpful info:
    Settings in configuration->sessions
    Host?
    Thinking maybe session related info available from phpinfo(): (normally available in admin at version button, but probably unable to get there based on the current issue) can create a file with the following info in it:
    Code:
    <?php echo phpinfo();
    access the file from the Web, provide associated info.
    Yes, I can access this information, but I think there are sensitive information that can't be posted here. What do you need exactly?

    Do you have cookies disabled on your browser or computer?
    No, I have cookies activated. I have also followed all this steps:

    https://www.zen-cart.com/content.php...working-for-me


    I have also asked to the hosting company if the php.ini is OK (I'm waiting for their response).

    Thank you for helping!
    Xavier.

    PD: The session problem is for the account in the store, not in the Admin. I can operate normally in the admin...

  4. #4
    Join Date
    Jul 2012
    Posts
    16,436
    Plugin Contributions
    17

    Default Re: Impossible checkout (Immediate expired session) after server move

    Do you have SSL enabled/available?

    Also is this the site that is in your signature? If so, getting a 403 error now. :/ (didn't try earlier)

    So, the store side is having session problem, but the admin side is not. The template that is being used for any of these tests, is it a stock ZC template? Thought that was said as a yes before, but want to confirm. An older template that doesn't properly handle session information as expected by ZC could cause this.

    Have an .htaccess file in the root of the store? Not required by ZC, but if it has something obscure in it then might possibly cause an issue? As to the info for sessions from phpinfo, I was kind of trying to get a kick start on likely questions that would help resolve. I'm drawing a blank at the moment on what would help. The session info from the admin as it relates to your includes/configure.php path info may help. (paths should match generally speaking.)

    Hopefully someone else will come along and be able to chime in a little more. Long day for me.
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  5. #5
    Join Date
    Apr 2011
    Posts
    22
    Plugin Contributions
    0

    Default Re: Impossible checkout (Immediate expired session) after server move

    Quote Originally Posted by mc12345678 View Post
    Do you have SSL enabled/available?
    I have SSL enabled.

    Also is this the site that is in your signature? If so, getting a 403 error now. :/ (didn't try earlier)
    I have moved the store for testing to /store.

    So, the store side is having session problem, but the admin side is not. The template that is being used for any of these tests, is it a stock ZC template? Thought that was said as a yes before, but want to confirm. An older template that doesn't properly handle session information as expected by ZC could cause this.
    No templates installed.

    Have an .htaccess file in the root of the store? Not required by ZC, but if it has something obscure in it then might possibly cause an issue?
    No .htaccess in the root.

    Hopefully someone else will come along and be able to chime in a little more. Long day for me.
    Thank you, and have a nice end of the day!

  6. #6
    Join Date
    Jul 2012
    Posts
    16,436
    Plugin Contributions
    17

    Default Re: Impossible checkout (Immediate expired session) after server move

    Knowing that it is now in a sub-folder, I just accessed the site and was able to navigate to my favorite two problem products in the hardware category. I didn't come across a session issue... even added one to my cart with no problem. Have you tried a different browser or computer?
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  7. #7
    Join Date
    Jan 2004
    Posts
    66,350
    Blog Entries
    7
    Plugin Contributions
    271

    Default Re: Impossible checkout (Immediate expired session) after server move

    Ya, it could be a browser "cached cookies" problem. Clearing the browser's cache and cookies can solve a multitude of problems like this where the browser thinks you're pointing one place but you've actually moved it and it can't sync up anymore.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  8. #8
    Join Date
    Apr 2011
    Posts
    22
    Plugin Contributions
    0

    Default Re: Impossible checkout (Immediate expired session) after server move

    Hi!
    I have just received response of my hosting service, and they have solved the problem. It was a bad configuration of the server (something about "suhosin.session.encrypt = off")... Now it works!!
    Thank you very much for your help!
    Xavier.

 

 

Similar Threads

  1. v151 Session Expired when attempting to go to HTTPS Checkout Page
    By leviathan in forum General Questions
    Replies: 1
    Last Post: 16 Oct 2013, 04:48 AM
  2. v151 Session Expired problem after installed the stock per atribute plugin
    By alexandregsalves in forum General Questions
    Replies: 0
    Last Post: 30 Jun 2013, 11:23 PM
  3. Session expired issues in add-to-cart and checkout process
    By kevorkjan in forum Upgrading to 1.5.x
    Replies: 1
    Last Post: 11 Apr 2013, 04:25 AM
  4. Replies: 4
    Last Post: 19 Nov 2009, 04:59 AM
  5. Google Checkout returning Whoops! Your session has expired.
    By g3steve in forum Addon Payment Modules
    Replies: 4
    Last Post: 14 Jul 2009, 06:36 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