Website Membership error requiring a login

Re: [rez] Website Membership error requiring a login

By Jason - January 11, 2012

Hi,

You need to connect to viewer_functions.php before you can do the $CURRENT_USER check. For example:

// load viewer library
$libraryPath = 'cmsAdmin/lib/viewer_functions.php';

require_once($libraryPath);

// require login
if (!$CURRENT_USER) { websiteLogin_redirectToLogin(); }


Hope this helps
---------------------------------------------------
Jason Sauchuk - Project Manager
interactivetools.com

Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/