<p>First, I just took over administration of our Craft site from a previous employee, and the original site was set up by a contractor, so I'm still trying to figure things out.</p>

<p>Yesterday it was reported that people can't log into the control panel anymore.  The login page loads, you enter your creds, and it just brings you right back to the login page, no errors.  We've tried entering an invalid password, and then we do get an error message, so it's checking something.</p>

<p>Any assistance would be greatly appreciated.  I feel like I have inherited a mess where the Craft site is running in Azure as a web instance along with the MySQL, but some assets are coming from AWS.</p>

<p>Thank you in advance.</p>

CC BY-SA 3.0
2015-10-09T19:30:58.320Z
Anything useful error messages in `craft/storage/runtime/logs`? If you open your browser's inspector's network tab, what's the response to the AJAX request that attempts to log in?
Brad Bell
CC BY-SA 3.0
2015-10-09T19:52:13.427Z
Also look for weird [redirects stuffed in .htaccess](http://craftcms.stackexchange.com/a/4880/1016). That's an easy 2 liner that will prevent anyone from logging in and would evade most logs.  That's kind of an easy way to cause the company some grief without breaking anything...
RitterKnight
CC BY-SA 3.0
2015-12-10T11:43:59.520Z
I had this today after setting up a new Homestead PHP7 box. The error from the AJAX request was about write permissions to /var/lib/php/sessions ( session_regenerate_id() was failing due to this ) Changing the permissions (to 0777 in my case) on that folder allowed the login.
billythekid
CC BY-SA 3.0
2016-09-15T23:55:19.570Z
Did you ever end up solving this, @Bryan?
Matt Stein
<control-panel><redirect><login><htaccess>
control panel login redirects back to login
# control panel login redirects back to login

(Asked by: username_0 on 2015-10-09)

First, I just took over administration of our Craft site from a previous employee, and the original site was set up by a contractor, so I'm still trying to figure things out.

Yesterday it was reported that people can't log into the control panel anymore. The login page loads, you enter your creds, and it just brings you right back to the login page, no errors. We've tried entering an invalid password, and then we do get an error message, so it's checking something.

Any assistance would be greatly appreciated. I feel like I have inherited a mess where the Craft site is running in Azure as a web instance along with the MySQL, but some assets are coming from AWS.

Thank you in advance.

**Tags:** control-panel, redirect, login, htaccess
> **Comments:**
> **username_1**: Anything useful error messages in `craft/storage/runtime/logs`? If you open your browser's inspector's network tab, what's the response to the AJAX request that attempts to log in?  
> **username_2**: Also look for weird [redirects stuffed in .htaccess](http://craftcms.stackexchange.com/a/4880/1016). That's an easy 2 liner that will prevent anyone from logging in and would evade most logs.  That's kind of an easy way to cause the company some grief without breaking anything...  
> **username_3**: I had this today after setting up a new Homestead PHP7 box. The error from the AJAX request was about write permissions to /var/lib/php/sessions ( session_regenerate_id() was failing due to this ) Changing the permissions (to 0777 in my case) on that folder allowed the login.  
> **username_4**: Did you ever end up solving this, @Bryan?  

---

## 0 answers

