Page 1 of 2 12 LastLast
Results 1 to 10 of 18
  1. #1
    Join Date
    Jun 2007
    Posts
    22
    Plugin Contributions
    0

    Default Banner Manager Logs me Out

    Good afternoon.

    I am currently using zencart 1.37 and about 50% of the time when i try to add/edit a banner under banner manager i am immediately logged out of the admin section and put back to the initial admin login screen.

    any suggestions will be gratefully accepted.

    http://www.pcsuperstore.com.au

  2. #2
    Join Date
    Jun 2007
    Posts
    22
    Plugin Contributions
    0

    Default Re: Banner Manager Logs me Out

    I should have also mentioned that i am using MySQL 4.1.9-max.

    This problem is now affecting a number of menus in the admin section, not just the banner manager.

    Frankly it is driving me CRAZY having to log back in every minute or two and re-do whatever changes i was making.

    Any suggestions will be greatly appreciated.

  3. #3
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Banner Manager Logs me Out

    Close all browser sessions ...

    Clear your cache and cookies ...

    If no one is on your site, I would also empty the following tables in your database:
    db_cache
    sessions
    whos_online

    Now try logging in with IE ... does it work?

    Next, try logging in with FireFox ... does it work?
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  4. #4
    Join Date
    Jun 2007
    Posts
    22
    Plugin Contributions
    0

    Default Re: Banner Manager Logs me Out

    Thanks for the reply Ajeh.

    I have tried emptying the tables you suggested, cleared cache and cookies, and tried to use the admin section from numerous computers, from numerous IP's on both IE and firefox. The problem still exists unfortunately.

    It is so bad now that it has basically crippled me from using the site. To update anything at all I have to have 3-4 attempts at it while being logged out in between each attempt.

    Any suggestions greatfully accepted :)

  5. #5
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default Re: Banner Manager Logs me Out

    Do you have any firewall software installed?
    Any cookie-blockers?
    Which browser does this happen with ?
    Do the same symptoms occur from another PC at another internet connection?
    What are your settings in Admin->Configuration->Sessions ?

    When did this start happening?
    What changed from before it stopped working properly ?
    .

    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
    Jun 2007
    Posts
    22
    Plugin Contributions
    0

    Default Re: Banner Manager Logs me Out

    Quote Originally Posted by DrByte View Post
    Do you have any firewall software installed?
    Any cookie-blockers?
    Which browser does this happen with ?
    Do the same symptoms occur from another PC at another internet connection?
    What are your settings in Admin->Configuration->Sessions ?

    When did this start happening?
    What changed from before it stopped working properly ?

    No cookie blockers.
    IE and firefox.
    Any PC, any IP.
    Settings in Admin->Configuration->Sessions
    Session Directory /home/pcsupers/public_html/cache
    Cookie Domain True
    Force Cookie Use False
    Check SSL Session ID False
    Check User Agent False
    Check IP Address False
    Prevent Spider Sessions True
    Recreate Session True
    IP to Host Conversion Status true

    This started happening about a week ago. The only thing i can think that has changed significantly is that we are now using flash banners as well as animated .gif banners. I am using code for the flash banners copied directly from http://www.zen-cart.com/wiki/index.php/Using_Flash

    Cheers.



  7. #7
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default Re: Banner Manager Logs me Out

    Okay, those are the default Sessions settings, which should work fine.

    If I were troubleshooting this directly, this is the approach I'd start with this method, which identifies all customizations made:
    http://www.zen-cart.com/wiki/index.p...Obscure_Issues

    From there, undoing smaller individual changes typically eventually isolates the problem and reveals a fix or an incompatibility.
    .

    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
    Jun 2007
    Posts
    22
    Plugin Contributions
    0

    Default Re: Banner Manager Logs me Out

    Thanks DrByte.

    I ran winmerge and compared my files but did not find any glaring inconsistencies.

    We had a problem with our webhost company last week where we could not upload files via FTP. They resolved the problem for us by giving us the direct IP address of the webserver instead of logging in using our hostname.

    Is it possible that these problems could be related? If so how would i go about isolating the cause.

    Once again, thanks everyone for your patience and helpful advice.

  9. #9
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default Re: Banner Manager Logs me Out

    Admin login sessions (and customer login sessions) are managed via the PHP session-handling functionality.
    When you log in, a session is generated, and the session's name is zenAdminId or zenid (for the store).
    When a session is started, PHP attempts to set a cookie in your browser. That cookie is intended to store that session ID so that it doesn't need to be shown in the browser all the time (ie: with &zenAdminID=243524524524525 etc) at the end of all your URLs.
    If a cookie cannot be set, then PHP simply includes the session name and number (like above) on all your URLs in order to keep you logged in.
    When you log out, or the session ID is lost, the session data is reset and your authentication data is removed, requiring login again.

    Possible causes of session-mgmt problems include:
    - cookies are blocked by firewall or by browser configuration
    - PHP is misconfigured or has certain session settings set to methods incompatible with Zen Cart such as session-auto-start and transitive-sid etc. The installer warns about these if they are a problem.
    - you have your site configured to store session data in files but your filesystem doesn't have permissions set in such a way as to allow storage of the data
    - you have your site set to store session data in the database but the database table ("sessions") is corrupt or database-storage is full and new records cannot be added.

    1. In your /admin/includes/configure.php, what is your setting for this line:
    Code:
    define('STORE_SESSIONS', 'db'); 
    // use 'db' for best support, or '' for file-based storage
    2. Is the setting the same for your /includes/configure.php file ?

    3. Is your "cache" folder set to read/write (ie: chmod 777):
    Quote Originally Posted by crankytech
    Session Directory: /home/pcsupers/public_html/cache
    .

    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.

  10. #10
    Join Date
    Jun 2007
    Posts
    22
    Plugin Contributions
    0

    Default Re: Banner Manager Logs me Out

    Quote Originally Posted by DrByte View Post
    1. In your /admin/includes/configure.php, what is your setting for this line:
    Code:
    define('STORE_SESSIONS', 'db'); 
    // use 'db' for best support, or '' for file-based storage
    2. Is the setting the same for your /includes/configure.php file ?

    3. Is your "cache" folder set to read/write (ie: chmod 777):
    Thanks for the very informative and fast reply DrByte.

    1. My setting in /admin/includes/configure.php is the same as what you posted.
    2. The setting in /includes/configure.php is the same.
    3. My cache folder is set to 777.

    PHP is configured as follows:
    session.auto_start Off Off
    session.use_trans_sid Off On

    Thanks for your patience and help.

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. EP Import logs me out
    By hamid84 in forum All Other Contributions/Addons
    Replies: 1
    Last Post: 25 Jul 2010, 07:14 PM
  2. Admin logs out
    By paul-h in forum Basic Configuration
    Replies: 2
    Last Post: 21 May 2010, 02:30 PM
  3. Replies: 3
    Last Post: 20 Oct 2009, 09:34 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