Django keep logged in lost when going outside to paypal payment
PROBLEM SOLVED, needed to add SESSION_COOKIE_NAME with my domain name in settings.py file
I'm kind of new to django, I'm having an issue to keep the logged in user still logged in after he made a payment via PayPal.
So, the user purchases something on my platform via PayPal payment, he is redirected to PayPal (currently to sandbox PayPal domain), PayPal executes the payment and redirects the user back to my platform using redirect_url I'm generating when sending the payment requests json to PayPal api.
After the user is redirected back to my platform he is not logged in anymore.
For example, in another scenario, lets say the user logged in and closed the browser, when they reopen the platform again he is still logged in.
What am I missing here?