Membership Plugin and/or getCurrentUserFromCMS

4 posts by 3 authors in: Forums > CMS Builder: Plugins & Add-ons
Last Post: July 29, 2014   (RSS)

By claire - July 23, 2014

Hi Perch

That function doesn't add anything new if you already have Website Membership. You can just ignore it.

Remember, if you need to access anything for the current user with Website Membership, all you need to do is look at the $CURRENT_USER variable.

--------------------

Claire Ryan
interactivetools.com

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

By Perchpole - July 23, 2014

Hi, Claire -

Thanks for confirming this.I'd set-up a test page with both snippets of code and I found I could be logged in twice - once in the SESSION variable - and once as a COOKIE!

I think I'm right in saying that CMSB is leaning more towards SESSION usage - but the Membership Plugin seems to be lagging in that regard.

:0/

Perch

By gregThomas - July 29, 2014

Hey Perch,

You should find that both the CMS Admin area and website membership login details are both stored in a cookie as opposed to the PHP Session. Although there is a PHP session if you log into the CMS, if you delete it you'll still be logged in, as this isn't used for storing login data. The website membership login cookie will start with web_, and the CMS login cookie will start with cms_. 

Thanks!

Greg

Greg Thomas







PHP Programmer - interactivetools.com