Skip to content

[OJS] Session problems in multijournal installations with custom base_url's #4595

Description

@ajnyga

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.

Metadata

Metadata

Labels

Enhancement:2:ModerateA new feature or improvement that can be implemented in less than 4 weeks.

Type

No type

Projects

Status
Under Development

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions