-
|
I am totally lost in a simple signup / login / logout with session guard. Signup Works without any problems. Also the login does, but then directly redirects me to the login again, because i am not logged in. Have i forgotten anything? |
Beta Was this translation helpful? Give feedback.
Answered by
ibnsultan
Jul 18, 2024
Replies: 1 comment 1 reply
-
|
Oh no, i just tried another webhost, now it is working.... |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
TLDR; It's an SSL issue.
A quick Fix (Not Recommended)
If you happen to encounter the issue next time, add
@session_start();at the beginning of yourpublic/index.php.Recommended Fix
When you call
auth()->useSession(), the below static method from theLeaf\Auth::classgets calledIn the above function two other methods gets called
configand$session, at this point I'd assume you know aboutconfigand it's not very relevant in this case, let's put our focus on $session which refers toAuth\Session::init()passing the c…