Results 1 to 2 of 2
  1. #1
    Join Date
    Jul 2005
    Posts
    35
    Plugin Contributions
    0

    Default Session save path - What does it do please ?

    Sorry if this is a dumb question.

    I've recently had problems with intermittent failures to log in to admin. I get the 'there was a security problem with your login' message.

    My service provider's engineer has made some changes for me but did query the fact that I had an incorrect path (to a non existent directory) in my sessions /session directory.

    As far as I know I've never changed this previously, so assume that it has made no difference in the past ?? (I have though, now corrected the setting to a 'correct' path)

    Therefore my dumb question.

    Please can someone tell me what exactly should be being saved in this folder. What is it's purpose and should I know about it.
    Many thanks
    Tony

  2. #2
    Join Date
    Jan 2004
    Posts
    66,446
    Plugin Contributions
    81

    Default Re: Session save path - What does it do please ?

    The default configuration of Zen Cart is to store session data in the database, since this allows sessions to work on both SSL and non-SSL pages most easily.
    Another optional configuration is to store session data in files on your server, in a folder that's writable by PHP. When you do that, PHP must store a file for EVERY visitor to your site. This session file keeps track of all the settings the visitor has invoked including where they're at on the site and what's in their shopping cart, even what currency they selected. When they're done on your site, or after a timeout period, those files are normally automatically removed by PHP.

    If your site is set to store sessions in files but the folder where you've told it to store those files is not writable or doesn't exist, then sessions can't start and logins and shopping can't happen.

    Also, if unauthorized persons gain access to those sessions files then you open yourself up to a security risk. So, if you're going to continue using files for session storage, make sure the folder is secured properly and not accessible by web visitors.
    .

    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.

 

 

Similar Threads

  1. function.session-save-path Error Cache Folder was 170mb!!
    By wdd49 in forum Installing on a Linux/Unix Server
    Replies: 3
    Last Post: 22 Aug 2011, 11:59 PM
  2. error in path (function.session-save-path) after switching servers
    By stitch in forum Installing on a Linux/Unix Server
    Replies: 7
    Last Post: 16 Feb 2010, 09:37 AM
  3. Replies: 2
    Last Post: 31 May 2009, 11:20 AM
  4. session_save_path() [function.session-save-path]:
    By vr4indian in forum Installing on a Windows Server
    Replies: 2
    Last Post: 30 Oct 2006, 07:45 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