Cannot log in to drupal admin in a new installation (access denied) I've just made a Drupal 7 installation on localhost with XAMPP. I created an SQL database and did the installation without any error.

However, when I try to login on Drupal admin from localhost/mytest?q=user, I get an error like "Access denied. You are not authorized to access this page".

I tried to change the password on PhpMyAdmin manually, but I still have this error. I don't have any other drupal installation on my laptop.

These are the latest lines on logs.txt in logs file:

[Thu Mar 05 17:43:11.022491 2015] [mpm_prefork:notice] [pid 4801] AH00169: caught SIGTERM, shutting down
[Thu Mar 05 17:43:15.000852 2015] [ssl:warn] [pid 5867] AH01906: www.example.com:443:0 server certificate is a CA certificate (BasicConstraints: CA == TRUE !?)
[Thu Mar 05 17:43:15.001021 2015] [ssl:warn] [pid 5867] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name
[Thu Mar 05 17:43:15.001398 2015] [suexec:notice] [pid 5867] AH01232: suEXEC mechanism enabled (wrapper: /opt/lampp/bin/suexec)
[Thu Mar 05 17:43:15.052113 2015] [auth_digest:notice] [pid 5868] AH01757: generating secret for digest authentication ...
[Thu Mar 05 17:43:16.002626 2015] [ssl:warn] [pid 5868] AH01906: www.example.com:443:0 server certificate is a CA certificate (BasicConstraints: CA == TRUE !?)
[Thu Mar 05 17:43:16.002750 2015] [ssl:warn] [pid 5868] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name
[Thu Mar 05 17:43:16.003085 2015] [lbmethod_heartbeat:notice] [pid 5868] AH02282: No slotmem from mod_heartmonitor
[Thu Mar 05 17:43:16.015087 2015] [mpm_prefork:notice] [pid 5868] AH00163: Apache/2.4.10 (Unix) OpenSSL/1.0.1j PHP/5.6.3 mod_perl/2.0.8-dev Perl/v5.16.3 configured -- resuming normal operations
[Thu Mar 05 17:43:16.015126 2015] [core:notice] [pid 5868] AH00094: Command line: '/opt/lampp/bin/httpd -E /opt/lampp/logs/error_log -D SSL -D PHP'
sh: 1: -t: not found
It may also be a cookie problem. To check if that is what causing it, just try to use another web browser to verify if you get the same problem.

If using that other browser the problem disappaears, then DELETE the cookie in the browser where you experience this problem and try again. Pretty sure your issue will be solved then.

Curious to hear if this helps (sometimes it does ...).