Admin login behavior
For some reason on my localhost site, I can go to localhost login (same as what page the normal user will see) and I can log into the admin panel from here and it works great.
But on my live website, if I log in using this form and then click my user icon -> Admin, to get to the admin settings, it redirects me to a separate admin login page where I have to input credentials again. I've tried to find the cause of this but I can't seem to figure it out.
It's not very important, I just thought there might be a simple fix for this that I can do that you might already know without typing a long solution or doing any testing. If you don't know, it's okay, it is a very small problem that I can look at later.
Thank you
Hi there,
This is quite interesting, in general this should not be a problem as the session is shared across the admin and the frontend.
Here are a couple of suggestions that you might want to try:
- Make sure the
APP_URL
is set correctly to your live website's URL, eg:
APP_URL=https://yourwebsite.com
Also note the http://
vs https://
depending on what you are using!
- Try clearing your cache:
php artisan config:clear
php artisan cache:clear
Also, what session driver are you using? It is defined in your .env
file with the SESSION_DRIVER=file
value. And is your Wave app deployed on the DigitalOcean app platform or on a standard linux server?
Thanks so much for the reply, I will try those when I get back to my work PC and can test.
I'm on a Cloudways linux server. I have not set up the environment variables yet...still working on stuff, and I gotta figure out how to best do that with a Cloudways setup. So right now it's still pulling from an ENV file even on my "live" site (nobody is using it yet but me) so I was thinking that this could also be the issue. Perhaps when I fix my environment variables to be properly set up this will solve it.
Also, I replied to this very old thread and it didn't bump to the top so I was not sure if anyone would ever see it, so I just wanted to point it out in case it was never going to be seen.
https://devdojo.com/question/how-to-use-paddle-inline-checkout-with-wave
thank you again for your help
No problem! Let me know how it goes!
I've posted an answer to the question that you've shared as well.