Results 1 to 6 of 6
  1. #1
    Join Date
    Aug 2006
    Location
    United States
    Posts
    28
    Plugin Contributions
    0

    Default Directory Change, Now no cookies/sessions

    I had to move my store to a different directory. After doing so I edited admin/includes/configure.php and /includes/configure.php and my store works good now, except when a customer trys to login it either takes them to the "Whoops! Your session has expired." page or just back to the index. I have done searches in the dev tool kit and in my mysql database for any URL's I needed to change and it appears I got 'em all, but the problem still exists. Any ideas?

  2. #2
    Join Date
    Jan 2004
    Posts
    66,364
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: Directory Change, Now no cookies/sessions

    Did you update the Session Directory in the Admin?
    http://www.zen-cart.com/wiki/index.p...Switch_Servers
    .

    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.

  3. #3
    Join Date
    Aug 2006
    Location
    United States
    Posts
    28
    Plugin Contributions
    0

    Default Re: Directory Change, Now no cookies/sessions

    Quote Originally Posted by DrByte
    Did you update the Session Directory in the Admin?
    http://www.zen-cart.com/wiki/index.p...Switch_Servers
    Yes, I did. I believe I changed that when I was doing all of my searching and editing. But I ran the Fix_Cache_Key utility just to make sure and it only reccomended 1 change but it had no effect.

  4. #4
    Join Date
    Aug 2006
    Location
    United States
    Posts
    28
    Plugin Contributions
    0

    Default Re: Directory Change, Now no cookies/sessions

    The admin login works, its just that when you try to login as a customer it doesn't set cookies or anything. I looked in the customer info and it shows that when I try to login it adds to the number of logons. Why would zen-cart not set cookies or sessions anymore just from moving it?

  5. #5
    Join Date
    Jan 2004
    Posts
    66,364
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: Directory Change, Now no cookies/sessions

    Quote Originally Posted by helmetman
    Why would zen-cart not set cookies or sessions anymore just from moving it?
    The only things that drive that are the 2 configure.php files and the Session-Directory setting in the admin.

    Unless you have a server problem. But, you suggested that you're still on the same server.

    I'd start by doing a fresh install in another folder+database. Make sure logins are working there properly.
    Then compare the configure.php files it generates against the ones you edited, to see if anything was missed.

    Oh, and make sure that the DIR_FS_SQL_CACHE folder is read/write/execute.
    .

    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.

  6. #6
    Join Date
    Aug 2006
    Location
    United States
    Posts
    28
    Plugin Contributions
    0

    Default Re: Directory Change, Now no cookies/sessions

    I found the problem. My server requires that I have "Recreate Session" set to FALSE. I wish I would've found this out sooner before I reinstalled my zen-cart!!! But now you can add this to the wiki.

 

 

Similar Threads

  1. v150 Navigating with Sessions when Cookies are Disabled
    By gunnzo in forum General Questions
    Replies: 3
    Last Post: 17 Dec 2014, 07:44 PM
  2. Replies: 3
    Last Post: 15 Feb 2012, 11:28 AM
  3. Sessions and cookies
    By FreeArticlePublishin in forum Bug Reports
    Replies: 1
    Last Post: 29 Nov 2010, 02:58 AM
  4. Sessions, cookies and remember me function
    By delia in forum General Questions
    Replies: 2
    Last Post: 13 Dec 2006, 04:32 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