OJS 3.1.2 - Sessions and cookies

I need help to find which class/methods are responsible for loading user sessions from database on application start.

I am writting a script to login user from another application, by using cookies.

So far I have external script that creates a new cookie with session_id, and a new record in ojs database. But when I visit ojs homepage, session is loaded, but user_id and data are set to null in db. If then I enter user_id manually in db, everything works fine.

@asmecher, can you maybe help?

Hi @Dragoljub_Djordjevic,

Take a look at these 3 classes: pkp-lib/classes/session at 3bd2b27a72856d794801de1de6c4475d6bba823c · pkp/pkp-lib · GitHub