PHP include vanguard

Closed
Vanguard - Advanced PHP Login and User Management Vanguard - Advanced PHP Login and User Management October 29, 2018
Login to reply
Torsten Högel
5 years ago

Great that workes perfectly ;)


Milos Stojanovic Support Agent
5 years ago

Hey Torsten,

Yes, the issue is because the cookie is created for app.go-on.io and you are trying to use Vanguard on go-on.io/neu.

You can easily solve it by editing the /config/session.php configuration file and by setting the domain parameter to .go-on.io 
Make sure that you don't miss the dot in front of the domain name since that's what indicates that it session cookie should be shared between subdomains.

- Milos

Torsten Högel
5 years ago

Hey there,

I'm trying to have my homepage: https://go-on.io/neu here and my vanguard script is installed on https://app.go-on.io

If I'm asking :  <?php if (Auth::check()): ?>

It's not working because obviously I'm missing the cookie "laravel_session".

Do you have an idea how i could fix that, i would be really happy :)