Page 4 of 4 FirstFirst ... 234
Results 31 to 35 of 35
  1. #31
    Join Date
    Aug 2006
    Posts
    5
    Plugin Contributions
    0

    Default Re: Unable to login to admin area

    Got a bit further with investigating this problem.

    1: I found out the session handler for the admin section is defined through the includes/functions/sessions.php and NOT through the expected admin/includes/functions/sessions.php. Dunno if this makes any difference to the working of the admin section.

    2: I can log in if I change the admin from DB-based sessions to file-based sessions. So it certainly has something to do with the session handler. However the shop itself works fine with the DB-based sessions.

    For anybody needing a quick workaround: try changing the sessions to file based sessions!

  2. #32
    Join Date
    Aug 2009
    Posts
    26
    Plugin Contributions
    0

    Default Re: Unable to login to admin area

    I got the same situation, when I transfer my website to another hosting. I wasn't able to login in admin area and I didn't receive any messages except wrong user name or password. I spent a lot of time to changing user name/password and finally I decided to install zen cart to the different directory, but using the same admin name and pwd. The name of DB I'm also created also the same, just added number after name. After that I changed configure.php in a admin/include . Next step - open phpMyAdmin (new DB) and copy from zen_admin table encrypted admin password to the old DB.
    And finally I just remove new installation, new DB and change pwd from Admin Store config.

  3. #33
    Join Date
    Jun 2009
    Location
    Orange County, California
    Posts
    544
    Plugin Contributions
    18

    Default Re: Unable to login to admin area

    To confirm whether you have session problems, try creating a sessions.php file with the following code:

    Code:
    <?php
    session_start();
    if(isset($_SESSION['views']))
        $_SESSION['views'] = $_SESSION['views']+ 1;
    else {
    
        $_SESSION['views'] = 1;
    }
    
    if( $_SESSION['views'] > 1)
      echo "Sessions are enabled";
    else
      echo "Sessions are disabled"
    ?>
    Upload the file to your site and navigate to it in your browser and see what the file says. If it gives a number, and that number goes up every time you refresh the page, caching is fine. If it says "Sessions are disabled" then you need to contact your webhost.

  4. #34
    Join Date
    Nov 2004
    Location
    Norfolk, United Kingdom
    Posts
    3,036
    Plugin Contributions
    2

    Default Re: Unable to login to admin area

    For those of you who cannot login to your admin panel, and have Ultimate SEO URLs installed, and have a host who uses cPanel, see here:

    http://www.zen-cart.com/forum/showth...=165142&page=6

    Vger

  5. #35
    Join Date
    May 2005
    Posts
    15
    Plugin Contributions
    0

    Default Re: Unable to login to admin area

    Quote Originally Posted by jackie.taferner View Post
    To confirm whether you have session problems, try creating a sessions.php file with the following code:

    Code:
    <?php
    session_start();
    if(isset($_SESSION['views']))
        $_SESSION['views'] = $_SESSION['views']+ 1;
    else {
    
        $_SESSION['views'] = 1;
    }
    
    if( $_SESSION['views'] > 1)
      echo "Sessions are enabled";
    else
      echo "Sessions are disabled"
    ?>
    Upload the file to your site and navigate to it in your browser and see what the file says. If it gives a number, and that number goes up every time you refresh the page, caching is fine. If it says "Sessions are disabled" then you need to contact your webhost.
    Just wanted to thank you directly for this tip. With this, I was able to point out to the Hosting Provider that Sessions were not enabled on our server after a PHP upgrade. The Hosting Provider then wrote a .htaccess file to enable sessions and this solved both a Admin and User login loop issue when SSL was active.

 

 
Page 4 of 4 FirstFirst ... 234

Similar Threads

  1. v151 Cannot access admin area - login loops back to admin login page
    By Dianne in forum Installing on a Linux/Unix Server
    Replies: 18
    Last Post: 14 Dec 2014, 02:46 PM
  2. Unable to access admin area
    By IsThisAnyGoodThen in forum Installing on a Linux/Unix Server
    Replies: 4
    Last Post: 26 Nov 2011, 01:21 AM
  3. Help with admin area able to login but unable to use
    By aozhaver in forum Basic Configuration
    Replies: 7
    Last Post: 8 Oct 2010, 02:43 PM
  4. Suddenly unable to login to admin area for last 3 days
    By mudguts in forum General Questions
    Replies: 5
    Last Post: 14 Dec 2009, 07:34 PM
  5. Unable to login to admin area
    By earthsfibres in forum Installing on a Linux/Unix Server
    Replies: 1
    Last Post: 26 May 2006, 08:12 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