Results 1 to 9 of 9
  1. #1
    Join Date
    Feb 2006
    Location
    NM
    Posts
    750
    Plugin Contributions
    1

    help question Database storage of session

    In an older thread Dr Byte said:

    The webserver handles SSL and NONSSL activities as separate activities from separate sites. This runs the risk of having your session data not available if the filesystem references aren't available from the "other" site.
    Granted, if all the files are handled from the same place, the risk is limited.
    However, if it's all stored in the database, it's all available regardless of which server it's coming from.
    Further, having any security information left in O/S files is a sensitive issue to many.
    Also, files are vulnerable to changes made server administrators related to permissions. If 777 rights were ever prevented by the admin, your site would be down until the sessions files could be written again.

    Both options work, but I recommend database for almost all cases.
    1. Can I do this through the control panel? Configuration>Sessions ?

    2. This is prompted by a customer wanting secure login. Currently I'm using the default settings for what is and isn't secure. Can someone tell me where the default ssl settings are as we notice since our 1.3.2 upgrades that some admin pages are secure and some are not as well.

  2. #2
    Join Date
    Feb 2006
    Location
    NM
    Posts
    750
    Plugin Contributions
    1

    Default Re: Database storage of session

    Some further info on my dilemma:

    1. In includes/configure.php in my up to date version of 1.3.2 Line 55 it says

    define('STORE_SESSIONS', ''); // leave empty '' for default handler or set to 'db'
    Is this all I have to do is put db in the '' as displayed here: 'db' then up load the file? Then what do I set it to in the Admin>configuration>sessions? Erase the path to my current file and leave blank? Should I risk this at all? This is the first time a customer has asked about secure login pages but it may be a problem we didn't know to look for.

    2. OK, I remember defining my https in includes/configure.php but is the application of https or secure pages dictated by some code on that page? If not, where and how? Because in my up to date version of 1.3.2 not all pages are secure in the admin or the login procedure.

  3. #3
    Join Date
    Jun 2003
    Posts
    33,721
    Plugin Contributions
    0

    Default Re: Database storage of session

    Zen Cart is smart and switches in and out of SSL mode based on the page.
    Please do not PM for support issues: a private solution doesn't benefit the community.

    Be careful with unsolicited advice via email or PM - Make sure the person you are talking to is a reliable source.

  4. #4
    Join Date
    Feb 2006
    Location
    NM
    Posts
    750
    Plugin Contributions
    1

    Default Re: Database storage of session

    Hi Kim...So it is, but can I make the log-in pages secure?

    By the way, Happy New Year and "thanks" to all you zen folks via paypal for making a programmer out of me!

  5. #5
    Join Date
    Jun 2003
    Posts
    33,721
    Plugin Contributions
    0

    Default Re: Database storage of session

    The login pages and checkout should be secure if it is configured properly. Please post your includes/configure.php without your password.
    Please do not PM for support issues: a private solution doesn't benefit the community.

    Be careful with unsolicited advice via email or PM - Make sure the person you are talking to is a reliable source.

  6. #6
    Join Date
    Feb 2006
    Location
    NM
    Posts
    750
    Plugin Contributions
    1

    Default Re: Database storage of session

    Sorry for the misleading info on that subject...I must have inadvertantly fixed the problem the customer was having as the login is now showing as secure throughout the process...but I am still interested in the necessity of changing from a file to the db for my sessions as we have had some customers with problems from time to time and DrByte's info seems to address this or at least be a good thing to try. Just need to know how to do it...if uploading the configure.php is all I have to do?

  7. #7
    Join Date
    Feb 2006
    Location
    NM
    Posts
    750
    Plugin Contributions
    1

    help question Re: Database storage of session

    So I'm down to this question: In order to avoid problems with sessions and follow through on the above quote fy Dr Byte:

    In includes/configure.php in my up to date version of 1.3.2 Line 55 it says

    define('STORE_SESSIONS', ''); // leave empty '' for default handler or set to 'db'
    Is this all I have to do is put db in the '' as displayed here: 'db' then up load the file? Then what do I set it to in the Admin>configuration>sessions? Erase the path to my current file and leave blank? Should I risk this at all?

  8. #8
    Join Date
    Jan 2004
    Posts
    66,450
    Plugin Contributions
    81

    Default Re: Database storage of session

    If you wish you may change STORE_SESSIONS from '' to 'db' and just upload the file.
    You should do the same for both configure.php files

    In Admin->Configuration->Sessions, just leave things alone. Do NOT blank out the path.
    .
    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.

  9. #9
    Join Date
    Feb 2006
    Location
    NM
    Posts
    750
    Plugin Contributions
    1

    Default Re: Database storage of session

    Thank you, DrByte.

 

 

Similar Threads

  1. Storage of PayPal Invoice ID in store database
    By HeyIts007 in forum General Questions
    Replies: 2
    Last Post: 1 Nov 2014, 07:32 PM
  2. Authorize.net - Enable Database Storage - option
    By LRS in forum Built-in Shipping and Payment Modules
    Replies: 2
    Last Post: 22 Feb 2012, 11:54 PM
  3. Security and Database backup storage location
    By Nineve in forum General Questions
    Replies: 1
    Last Post: 2 Aug 2010, 11:30 PM
  4. beanstream - database storage
    By keyser79 in forum Addon Payment Modules
    Replies: 3
    Last Post: 19 Nov 2008, 10:32 PM

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