python - Django session lost due to calling another server via iframe -


i have 2 development servers written python/django - 1 api server(it's not solely api server; has ui , etc.), , 1 demo app used serve data communicating api server. invoke demo app iframe in api server. after getting response demo app, original user session of api server lost(supposed have 2 sessions -- 1 user of api server, 1 communication between demo app , api server).

any idea happened?

if running both on same server, session cookie might overwritten since both expect sessionid cookie. if sessionid doesn't exist new 1 generated, when access outer app, sessionid cookie, , gets passed iframe app doesn't recognize , generates new one. try giving each app it's own unique session_cookie_name


Comments

Popular posts from this blog

linux - Does gcc have any options to add version info in ELF binary file? -

android - send complex objects as post php java -

charts - What graph/dashboard product is facebook using in Dashboard: PUE & WUE -