Results 1 to 2 of 2
  1. #1
    Join Date
    Feb 2005
    Location
    Syracuse, New York, USA
    Posts
    37
    Plugin Contributions
    1

    Default 1.3.9d visiting non-SSL page logs user out

    After upgrading to 1.3.9d, when visiting my site with cookies blocked in my browser, I can log in just fine, and as long as I only visit SSL pages I'm fine. But as soon as I visit a non-SSL page I get logged out.

    I can fix this problem by modifying the following lines of code in init_includes/init_sessions.php (lines 42-46):

    Code:
    if (isset($_POST[zen_session_name()])) {
      zen_session_id($_POST[zen_session_name()]);
    } elseif ( ($request_type == 'SSL') && isset($_GET[zen_session_name()]) ) {
      zen_session_id($_GET[zen_session_name()]);
    }
    If I remove the ($request_type == 'SSL') my site works fine; I remain signed in on all pages.

    I don't understand why this code insists upon a $request_type of SSL. Both SSL and non-SSL pages can have a ZENID.

  2. #2
    Join Date
    Nov 2007
    Location
    Sunny Coast, Australia
    Posts
    3,379
    Plugin Contributions
    9

    Default Re: 1.3.9d visiting non-SSL page logs user out

    Could you give us a link to your site pls?

 

 

Similar Threads

  1. Home page link logs user out
    By GeoffM in forum General Questions
    Replies: 7
    Last Post: 26 Jan 2012, 07:45 PM
  2. user gets kicked off between ssl and non ssl
    By keneso in forum General Questions
    Replies: 9
    Last Post: 10 Aug 2011, 12:36 AM
  3. SSL Admin logs out
    By ididdy in forum Installing on a Mac Server
    Replies: 6
    Last Post: 12 Jun 2011, 01:32 PM
  4. SSL Admin logs out
    By paul-h in forum Basic Configuration
    Replies: 19
    Last Post: 31 Oct 2010, 05:45 AM

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