Hi, this applies to all latest versions of OJS, because I think the code for sessions has been the same for a while.
Scenario:
User is logged in from the site level at site.com. A new session with domain .site.com is created.
User moves to a subdomain journal (custom base_url). The user no longer appears to be logged in and a second session is created with domain .journalname.site.com.
User logs in from the journal and can enter the dashboard successfully.
User logs out.
The session .journalname.site.com is updated to reflect that the user has logged out. The session with domain .site.com still shows that the user is logged in.
Problem: if the user now tries to log in from the journal she can not anymore. After logging in the session is updated to reflect that she has logged in, but OJS does not allow her to access the dashboard. Also the user navigation menu shows the login and register links.
What I am wondering is that do we need to initiate new cookies for each subdomain, or could we just always use the main domain in the cookie? For example .site.com.
Hi, this applies to all latest versions of OJS, because I think the code for sessions has been the same for a while.
Scenario:
User is logged in from the site level at
site.com. A new session with domain.site.comis created.User moves to a subdomain journal (custom base_url). The user no longer appears to be logged in and a second session is created with domain
.journalname.site.com.User logs in from the journal and can enter the dashboard successfully.
User logs out.
The session
.journalname.site.comis updated to reflect that the user has logged out. The session with domain.site.comstill shows that the user is logged in.Problem: if the user now tries to log in from the journal she can not anymore. After logging in the session is updated to reflect that she has logged in, but OJS does not allow her to access the dashboard. Also the user navigation menu shows the login and register links.
What I am wondering is that do we need to initiate new cookies for each subdomain, or could we just always use the main domain in the cookie? For example
.site.com.