Software Hosting and Development Services available at PKP Publishing Services
As the developers of Open Journal Systems, Open Conference Systems, Open Harvester Systems, and Open Monograph Press, the PKP team are experts in helping journal managers and conference organizers make the most of their online publishing projects. PKP Publishing Services offers support for:
As a customer of PKP Publishing Services, you will not only receive direct, personalized support from the PKP Development Team, but will be contributing to the ongoing development of the PKP applications. All funds raised by PKP Publishing Services go directly toward enhancing our free, open source software. For more information, please contact us.
OJS development discussion, enhancement requests, third-party patches and plug-ins.
Moderators: jmacgreg, michael, jheckman, barbarah, btbell, bdgregg, asmecher
Forum rules
Developer Resources:Documentation: The
OJS Technical Reference and the OJS
API Reference are both available from the
OJS Documentation page.
Git: You can access our public Git Repository
here. Comprehensive Git usage instructions are available on the
wiki.
Bugzilla: You can access our Bugzilla report tracker
here.
Search: You can use our
Google Custom Search to search across our main website, the support forum, and Bugzilla.
Questions and discussion are welcome, but if you have a workflow or usability question you should probably post to the
OJS Editorial Support and Discussion subforum; if you have a technical support question, try the
OJS Technical Support subforum.
by osborne » Thu Mar 02, 2006 8:38 pm
When put in a file in my ojs directory, the following code detects whether a user is logged in:
- Code: Select all
require('includes/driver.inc.php');
initSystem();
$isUserLoggedIn = Validation::isLoggedIn();
So far, so good. But I'd like a file
outside the ojs directory to be able to detect whether a user is logged in; I can't find a way of doing so. I'm guessing that it's either trivial or impossible (and that if I understood how the PHP session system worked I'd know the answer!). Is it possible?
Martin J. Osborne
-
osborne
-
- Posts: 77
- Joined: Mon Jun 07, 2004 1:24 pm
- Location: Toronto, Canada
by asmecher » Fri Mar 03, 2006 10:37 am
Hi Martin,
In addition to bringing in the required PHP includes, you'll need to modify the OJS cookie's base path -- see classes/session/SessionManager.inc.php, line 40. To make the cookie server-wide, change:
- Code: Select all
ini_set('session.cookie_path', Request::getBasePath() . '/');
to
- Code: Select all
ini_set('session.cookie_path', '/');
Regards,
Alec Smecher
Open Journal Systems Team
-
asmecher
-
- Posts: 5920
- Joined: Wed Aug 10, 2005 12:56 pm
-
by osborne » Fri Mar 03, 2006 8:58 pm
Many thanks---it was really bugging me that I couldn't figure out how to do it.
Martin J. Osborne
-
osborne
-
- Posts: 77
- Joined: Mon Jun 07, 2004 1:24 pm
- Location: Toronto, Canada
Return to OJS Development
Who is online
Users browsing this forum: No registered users and 3 guests