Page 1 of 2 12 LastLast
Results 1 to 10 of 12
  1. #1
    Join Date
    Aug 2007
    Posts
    8
    Plugin Contributions
    0

    Default Cannot escape from login

    I've done a straightforward install, have changed nothing. I can get to the catalogue site ok but going to admin takes me to the login page - I enter the admin login user and pwd but it just takes me back to the login page.

    I found a couple of other admin problems but none seemed to be the same as mine. (This must be something to do with my server as I also installed OSCommerce to try out and that had the same problem.)

    Anyone got any ideas? My site is hosted so I cannot change the httpd config or php.ini but can change any files and add .htaccess files if necessary.

    Thanks,
    Tony.

  2. #2
    Join Date
    Dec 2005
    Posts
    1,509
    Plugin Contributions
    6

    Default Re: Cannot escape from login

    Check all your permissions on the server and also check the PHP Session settings on the server. If you can't hold a session, you may have potential problems holding a login.

    Can you login as a CUSTOMER (from the catalog side). If so, then the previous concept might not bee worth looking into, and you should look exclusively within the admin files and configuration themselves.

    Make sure your PHP setting have the temp path set (to hold session data etc..). I found one time with another site that the temp path was not set correctly on a server, and as a result, the login would perform similar to what you are describing.

    Mind you, that wasn't a Zen Cart site, but it may be worth looking into.

    Testing login between customers and admins will at least give you a place to start narrowing down your issue.
    Eric
    20 Ways to Increase Sales Using Zen Cart
    Zen Cart contribs: Simple Google Analytics, Export Shipping Information

  3. #3
    Join Date
    Aug 2007
    Posts
    8
    Plugin Contributions
    0

    Default Re: Cannot escape from login

    Quote Originally Posted by econcepts View Post
    Check all your permissions on the server and also check the PHP Session settings on the server. If you can't hold a session, you may have potential problems holding a login.

    Can you login as a CUSTOMER (from the catalog side).
    Thanks, econcepts. I am not able to log in as a customer either. How do I check the session settings? And what should I look for on the permissions side?

    Cheers,
    Tony.

  4. #4
    Join Date
    Aug 2007
    Posts
    8
    Plugin Contributions
    0

    Default Re: Cannot escape from login

    I am not able to log in as a customer either
    but the customer is created in the database

    Also, just picked this up from the server php_info():

    Session Support enabled
    Registered save handlers files user

    Directive LocalValue MasterValue
    session.auto_start Off Off
    session.bug_compat_42 On On
    session.bug_compat_warn On On
    session.cache_expire 180 180
    session.cache_limiter nocache nocache
    session.cookie_domain no value no value
    session.cookie_lifetime 0 0
    session.cookie_path / /
    session.cookie_secure Off Off
    session.entropy_file no value no value
    session.entropy_length 0 0
    session.gc_divisor 100 100
    session.gc_maxlifetime 1440 1440
    session.gc_probability 1 1
    session.name PHPSESSID PHPSESSID
    session.referer_check no value no value
    session.save_handler files files
    session.save_path /tmp /tmp
    session.serialize_handler php php
    session.use_cookies On On
    session.use_only_cookies Off Off
    session.use_trans_sid On On
    Last edited by tonylinde; 21 Aug 2007 at 07:31 PM.

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

    Default Re: Cannot escape from login

    The installer should have warned you about this one:
    Quote Originally Posted by tonylinde View Post
    session.use_trans_sid On On
    It should be Off.
    .

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

    Default Re: Cannot escape from login

    Quote Originally Posted by DrByte View Post
    The installer should have warned you about this one:

    Originally Posted by tonylinde
    session.use_trans_sid On On

    It should be Off.
    Thanks, DrByte. I created a .htaccess file in the root zencart directory with the two lines:

    php_value session.use_trans_sid 0
    php_value register_globals 1

    I thought that was supposed to fix it. Didn't work - logging in as customer just came up with the 'please log in' message again.

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

    Default Re: Cannot escape from login

    What version of PHP ?
    .

    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
    Aug 2007
    Posts
    8
    Plugin Contributions
    0

    Default Re: Cannot escape from login

    Quote Originally Posted by DrByte View Post
    What version of PHP ?
    PHP Version 5.1.0RC1

    T.

  9. #9
    Join Date
    Aug 2007
    Posts
    8
    Plugin Contributions
    0

    Default Re: Cannot escape from login

    Seems I can add:

    AddHandler custom-php .php .pcgi .phtml .inc .phtml~ .php~ .inc~ .html~
    Action custom-php /cgi-sys/php4

    to .htaccess to get php v4.x.x if that'd be better.

    And can specify a separate php.ini file to override any of those if that helps.

  10. #10
    Join Date
    Aug 2007
    Posts
    8
    Plugin Contributions
    0

    Default Re: Cannot escape from login

    Quote Originally Posted by tonylinde View Post
    Seems I can add:

    AddHandler custom-php .php .pcgi .phtml .inc .phtml~ .php~ .inc~ .html~
    Action custom-php /cgi-sys/php4
    That did it!!! Admin works too!

    Looks like zen-cart doesn't work with PHP 5.1.0RC1.

    Thanks, all,
    T.

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. Replies: 12
    Last Post: 24 Jul 2008, 10:47 PM
  2. I cannot login in admin and my clients cannot login
    By jazlee in forum General Questions
    Replies: 1
    Last Post: 28 Oct 2007, 09:50 AM
  3. partner cannot login to admin panel from his hous
    By Bill_G in forum Installing on a Linux/Unix Server
    Replies: 5
    Last Post: 18 Apr 2007, 06:36 AM
  4. Installing from DreamHost - please help - cannot login
    By flyingpeachbun in forum Installing on a Windows Server
    Replies: 5
    Last Post: 12 Sep 2006, 04:06 AM

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