Magento – Magento 1.7.0.2 cannot login to admin locally

configurationcookiemagento-1.7

I installed locally magento 1.7.0.2 BUT i cannot login to admin panel!

WHAT TO DO?! I try absolutely everything solution in WEB!

I tried these suggested solutions

  • Clear the contents of the directory var/cache and try again.
    still NO ADMIN LOGIN

  • I fixed it by manually setting two core_config_data values in the database.
    They are as follows:

    web/cookie/cookie_path = /

    web/cookie/cookie_domain = "mydomain.com"
    still NO ADMIN LOGIN

  • I Opened Magento root directory and create tmp folder.
    and Open “lib/Zend/Cache/Backend/File.php“,
    and locate the following code:

    protected $_options = array( ‘cache_dir’ => null, replace with protected $_options = array( ‘cache_dir’ => ‘tmp’,
    

    still NO ADMIN LOGIN

  • I also checked my php.ini file there is upload_tmp_dir = "c:/wamp/tmp"
    still NO ADMIN LOGIN

Whats wrong with local instalations of Magento guys ???

I still get the same admin page with a a url like this

http://magento1/index.php/admin/index/index/key/56d082fb6349c1a302a5afd93ed14e9d/

Best Answer

This so far is the best solution rather than changing the code elsewhere:

Using phpMyAdmin, in your Magento database, look for the core_config_datatable and open it. Click the "Search" tab. Then on the "path" column set the operator to LIKE %...% and the Value to cookie and click the "Go" button to search.

After searching, set the value of web/cookie/cookie_path, web/cookie/cookie_domain, web/cookie/cookie_httponly, and web/browser_capabilities/cookies to NULL

See also: http://iamtheshadowonthesun.blogspot.com/2012/10/magento-cannot-login-to-admin-panel.html