Laravel version 4.1
Works perfectly fine on the server and on the domain, but I wanted to take it into development to my localhost and I can't log in. I don't get error messages, nothing to log and nothing happens, expect I'm redirected back to /login
page when I try to log in. I have changed session.php
, database connection to my localhost database and app.php
pointing it to http://localhost
(I have also tried to point it to localhost
and http://127.0.0.1
). Database connection works, login page (which is the front page) loads. File permissions in /app/storage
are correct.
The script is using Sentry2 for authentication. Any ideas what I could try?
Ok, actually figured it out. It was a setting.
For those with this problem possibly in the future, in session.php set Session cookie domain to:
'domain' => "",
I had it on localhost or as ip before and it didn't find the sessions, therefore causing the problem I had.