Ok, I’ve figured out the basic authentication, but now I’m trying to figure out how to make a user’s information available on every page via a session variable.
1.) How can I make a front end user the ’current user’ so that their information is available via $modx->user->get(’whatever’); without giving them access to the back-end?
2,) What role should contexts play in a scenario where I’m wanting to limit access to certain front-end pages and resources?
3.) Are the items under the security tab such as users, access controls and resource groups specifically intended for use with back-management or are these options meant to be used for the front-end as well?
4.) splittingred - I’ve experimented with addSessionContext() and isAuthenticated() but I’m stuck with trying to figure out how to make additional user information available beyond whether a user is simply authenticated in a context (such as user profile information). Also, I’m confused as to why we would add a context for authentication instead of simply accessing existing user information (check to see if user is in user group and what role they have). The second part of my question kind-of ties in with my previous question. If users, access controls etc. are meant specifically for the backend then it would make sense to use an alternative approach such as contexts. But then, once again, I’m stuck trying to figure how to store and access user information with the context approach.
5.) What kind of stuff can I do with session contexts?
Any help would be greatly appreciated! I’m trying to finish this site before the Nov. 14 National Apologetics Conference here in Charlotte as we’re hoping to market the site to potential new members at the conference.
Here’s a link to the site in case anyone is interested in getting a better idea of the type of thing I’m trying to accomplish
http://www.3eimpact.org/index.php?id=82&tab=categories
Thanks!