2

Authentication persists nicely across my subdomains on my localhost thanks to help I received here. But now I'm having trouble my remote server. I changed 'domain' => '.mydomain.com', in session.php and now I can't log in at all. Actually, Auth:attempt() works just fine but it fails my auth filter when it then attempts to load the next page. Here's the code in my filter:

if ( Auth::guest() ) return Redirect::guest('login');

To me this means that sessions aren't working at all. And that line that I changed in session.php is definitely the culprit, because when I change it back to 'domain' => null, I can log in just fine... it just doesn't persist across subdomains. Any ideas on getting laravel to remember sessions across my subdomains?

Community
  • 1
  • 1
sterfry68
  • 1,063
  • 2
  • 14
  • 30

1 Answers1

4

Do all of this login testing in private windows, as old persisting cookies can really screw you up.

Phil Sturgeon
  • 30,637
  • 12
  • 78
  • 117
  • 1
    This worked. Deleted my browser cache and it works perfectly. And I thought this was going to be a complex solution. Thanks! – sterfry68 Jul 02 '14 at 16:13