[Django]-How to make Django use the same session on different URLs?

3👍

You need to add SESSION_COOKIE_DOMAIN parameter to your settings

SESSION_COOKIE_DOMAIN = '.example.com'

The domain to use for session cookies. Set this to a string such as “.lawrence.com” (note the leading dot!) for cross-domain cookies, or use None for a standard domain cookie.

👤Igor

Leave a comment