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
The Public Knowledge Project Support Forum is moving to http://forum.pkp.sfu.ca

This forum will be maintained permanently as an archived historical resource, but all new questions should be added to the new forum. Questions will no longer be monitored on this old forum after March 30, 2015.

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: 910
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: 910
Joined: Tue Jan 10, 2006 6:20 am


Return to OJS Technical Support

Who is online

Users browsing this forum: Google [Bot], Yahoo [Bot] and 2 guests

cron