Membership Plugin and/or getCurrentUserFromCMS

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

By Perchpole - July 22, 2014

Hello, All -

I recently discovered there is a new way to access user info with the getCurrentUserFromCMS function. From what I've read thus far it was introduced to help manage user info for those who don't have the membership plugin.

I do have the membership plugin - so my question is should I completely avoid this function (and all the other bits of code that go with it) or does it introduce new features that would be useful in addition to the membership plugin?

Thanks,

Perch

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 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