Website Membership
5 posts by 2 authors in: Forums > CMS Builder: Plugins & Add-ons
Last Post: August 26, 2015 (RSS)
I am using the latest version of CMSB and Website membership plugin.
The problem I am having is with the logout. When I logout, the private content is still displayed. Even going to another page and coming back to the private page, the content is still showing.
If I go back to the login page, its as if I had not logged in, except for the specific page I was last on before logging out.
I checked to see if $CURRENT_USER was still set, but its not.
Any ideas?
Ragi.
northernpenguin
Northern Penguin Technologies
"Any sufficiently advanced technology
is indistinguishable from magic."
........Arthur C. Clarke
By Damon - August 25, 2015
Hi Ragi,
I tested with a local installation using the latest versions of both CMS Builder and Website Membership and I'm not able to recreate this.
Are you using this code to display content for logged in users only:
<?php if ($CURRENT_USER): ?>
Only logged in users will be able to see this.
<?php endif ?>
And using this code to display content for users who aren't logged in:
<?php if (!$CURRENT_USER): ?>
Only logged who are _not_ logged in will see this:
<?php endif ?>
I also tested making the whole page login only so if you aren't logged in, you get auto directed to the login with no issues.
Can you send in a support request (don't post details here) with CMS Builder, FTP and Website Membership account I can test with:
https://www.interactivetools.com/support/email_support_form.php
Also the browser you are using too.
Thanks!
Damon Edis - interactivetools.com
Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/
Thanks Damon. I have submitted the support request.
northernpenguin
Northern Penguin Technologies
"Any sufficiently advanced technology
is indistinguishable from magic."
........Arthur C. Clarke
By Damon - August 26, 2015
Hi,
Sent you an reply to your ticket.
The issue was a simple typo which caused the content to show when not logged in and after clicking log out.
Damon Edis - interactivetools.com
Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/
Thanks Damon!
I couldn't see the forrest for the trees.
Ragi
northernpenguin
Northern Penguin Technologies
"Any sufficiently advanced technology
is indistinguishable from magic."
........Arthur C. Clarke