OJS OCS OMP OHS

You are viewing the PKP Support Forum | PKP Home Wiki



OJSSID - how it works?

Are you responsible for making OJS work -- installing, upgrading, migrating or troubleshooting? Do you think you've found a bug? Post in this forum.

Moderators: jmacgreg, btbell, michael, bdgregg, barbarah, asmecher

Forum rules
What to do if you have a technical problem with OJS:

1. Search the forum. You can do this from the Advanced Search Page or from our Google Custom Search, which will search the entire PKP site. If you are encountering an error, we especially recommend searching the forum for said error.

2. Check the FAQ to see if your question or error has already been resolved.

3. Post a question, but please, only after trying the above two solutions. If it's a workflow or usability question you should probably post to the OJS Editorial Support and Discussion subforum; if you have a development question, try the OJS Development subforum.

OJSSID - how it works?

Postby Ajakss » Thu Mar 28, 2013 11:59 pm

Dear,

I have to describe how the cookie OJSSID works. What does it do? I would be very appreciated for your help.

Kind regards,

Adam
Ajakss
 
Posts: 55
Joined: Fri Jun 08, 2012 11:16 am

Re: OJSSID - how it works?

Postby JasonNugent » Fri Mar 29, 2013 4:18 am

Hi Adam,

It is the session cookie within OJS. It's used to track users who are logged in as they navigate across the website. The cookie is used as a key in the 'sessions' database table, which contains information about users who are logged in (look at the 'data' column in the table). Things like your user id and your username.

Regards,
Jason
JasonNugent
Site Admin
 
Posts: 893
Joined: Tue Jan 10, 2006 6:20 am

Re: OJSSID - how it works?

Postby Ajakss » Thu Apr 04, 2013 2:01 am

Hi Jason,

many thanks for your reply. I have noticed that database register the user IP adress. Is there any way to clear it after log out?

Kind regards,

Adam
Ajakss
 
Posts: 55
Joined: Fri Jun 08, 2012 11:16 am

Re: OJSSID - how it works?

Postby JasonNugent » Thu Apr 04, 2013 6:00 am

Hi Adam,

There isn't a way to clear out the IP address normally, but you could certainly code in such a feature if you wanted to. You could approach it in one of two ways. The first would be to modify the logout() method in classes/security/Validation.inc.php and reset the IP address in the session object before it is updated near the end of the function. The second way would be to create a scheduled task class and just run it as part of the regular scheduled tasks and have that class clear the IP addresses of expired sessions. There are example scheduled tasks in classes/task.

Regards,
Jason
JasonNugent
Site Admin
 
Posts: 893
Joined: Tue Jan 10, 2006 6:20 am


Return to OJS Technical Support

Who is online

Users browsing this forum: Bing [Bot], Yahoo [Bot] and 5 guests