简体   繁体   中英

I have two django sites. How can I tell if a user is already authenticated on one of them?

I have two sites that are very closely linked and both are built with django. They have the same set of users.

How would I tell on one site if the user is authenticated on the other?

Use a session backend that uses a common store (a database, or redis), which is accessible to both; or openid as suggested by alf.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM