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. :dontgetit
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. :dontgetit
For anybody needing a quick workaround: try changing the sessions to file based sessions! :bigups:
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.
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.
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
Re: Unable to login to admin area
Quote:
Originally Posted by
jackie.taferner
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.