[Answer]-Django session lost due to calling another server via iframe

1👍

If you are running both on the same server, the session cookie might be overwritten since they both expect a sessionid cookie. If a sessionid doesn’t exist a new one is generated, so when you access the outer app, you get a sessionid cookie, and that gets passed to the iframe app which doesn’t recognize it and generates a new one. Try giving each app it’s own unique SESSION_COOKIE_NAME

Leave a comment