'laravel session cookie not being set
I recently moved my website to a new server ( both are apache ).
the problem is that in this new server, the session cookie is not being set ( in addition to the XRF-token cookie ). but in my older host, they are just being set perfectly.
and I also noticed that the set-cookie header is not present ( but in the older host is present. )
Note that hosting moved my entire home directory, so none of my files have changed and the database ( my session driver ) works fine and stores sessions.
but cookies are not being set and as a result of that, I get 419 errors from the login page and other POST requests.
is there any configuration that I have to do in my new cPanel host or is there anything you think that I missed? also tried clearing the cache and regenerating the app key. nothing worked.
Solution 1:[1]
I also having the same issue. Solved by removing all die() commands that I put in.
Solution 2:[2]
If you check the documentation for the geoflutterfire library on writing geo data, you'll see that it adds a field called geohash to the document. This is necessary in order to perform geoqueries on Firestore.
This geohash field is missing from the document in your screenshot, which means it will not be found by geoqueries.
To learn more about what this property is, and why it is needed, have a look at the Firebase documentation on adding geoqueries to Firestore (it doesn't use the same library as you do, but the approach is the same) and the video from a talk I did a few years ago on adding geoqueries to Firestore.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Mystogan |
| Solution 2 | Frank van Puffelen |
