Hi Ragi,
The lastUrl cookie is an optional setting you can use in CMS Builder that is used to redirect the user to a different page to the one set in the websiteMembership.php after logging in. For example, you might set it on a detail page like this:
// load viewer library
$libraryPath = 'cmsAdmin/lib/viewer_functions.php';
$dirsToCheck = array('/home/koloa/public_html/','','../','../../','../../../');
foreach ($dirsToCheck as $dir) { if (@include_once("$dir$libraryPath")) { break; }}
if (!function_exists('getRecords')) { die("Couldn't load viewer library, check filepath in sourcecode."); }
if(!@$CURRENT_USER){
setPrefixedCookie('lastUrl', thisPageUrl());
redirectBrowserToLogin('/login.php');
}
So in the example above if the user wasn't logged in, you'd set the lastUrl cookie to the current page URL, then redirect the user to the login page. Then once they'd logged in they'd be taken back to the detail page they were on.
This can sometimes cause issues as the cookie isn't removed after the user leaves the page they are currently on, so if they navigate around the site for a bit, then log in they are taken to a page they didn't expect. I thought this might be happening with your page, but if you've not set the lastUrl cookie, so it must be something different.
Could you fill out a second level support request for me? You can find the form here:
https://www.interactivetools.com/support/email_support_form.php
Then I can take a closer look at what is causing the issue.
Thanks!
Greg
Greg Thomas
PHP Programmer - interactivetools.com