I have 5 django website on my server. The problem is that I can't be logged-in in every website at the same time, when I login in website A and I click on another site B : I lose connection on A. I can only be logged with 1 site at a time.
4 sites works with sqlite and one with postgresql, every site has it's own folder. I use django 1.4 and DB session storage and mod wsgi.
Do you know how I can make user connection persistent so that I can be logged on all websites at the same time ? I don't know how to solve that issue, maybe it's a problem with the database, or my wsgi is not well configured.
Thanks.
Because you are using the same domain for all the websites you must set the SESSION_COOKIE_PATH
in each Django website to point to the top-level path that the website is served from. You can find more details here
It's also advisable to set a different SESSION_COOKIE_NAME
for each website.