login admin panel redirect to login page in each submit in live

hello everyone , trying to login in live admin panel login redirect me to login every time i attemt the data in submit and nothing in conlole a have no ssl on it, is that an issue ? can you help me with this http://gysi.herokuapp.com/admin/login
21 Replies
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Mateo
Mateo2y ago
i dont have something like this in my twill.php file it wasn't in twill docs is there any configuration diferent for production ?\
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Mateo
Mateo2y ago
i tryed but the same thing is not working yet
Mateo
Mateo2y ago
Mateo
Mateo2y ago
@ifox @Harings Rob @kalle have you any idea how to slove this
kallefrombosnia
Have you tried clearing the cache? php artisan optimize:clear
Mateo
Mateo2y ago
yes i did it and the same result
kallefrombosnia
Can you show me these env vars?
APP_URL
ADMIN_APP_URL
ADMIN_APP_PATH
SESSION_DOMAIN=
APP_URL
ADMIN_APP_URL
ADMIN_APP_PATH
SESSION_DOMAIN=
Mateo
Mateo2y ago
i dont have session domain is neceseary ?
Mateo
Mateo2y ago
kallefrombosnia
Can you check when you log in on which domain cookie is set? After redirect
Mateo
Mateo2y ago
i donnt see any request in cookies after submit http://gysi.herokuapp.com/admin/login
kallefrombosnia
If validation passes, auth should set the cookie in your browser. Check here.
Mateo
Mateo2y ago
im checking to network for any api request and nothing there in local host everything works but in production this hoppen
kallefrombosnia
I have not worked with the subdomain yet on Twill, but can you try to set env var to SESSION_DOMAIN=".herokuapp.com ?
Mateo
Mateo2y ago
Hro
Hro2y ago
What is your session driver set to on production?
Mateo
Mateo2y ago
Hi @Harings Rob , Where ca i find that session driver , sorry but is my first time deloying a project (production)
Hro
Hro2y ago
look for session_driver in .env
Mateo
Mateo2y ago
session_driver=file