Portal Engine Questions on portal engine and web parts.
Version 7.x > Portal Engine > Change a role status based on Action. View modes: 
User avatar
Member
Member
egarrison-wte - 3/20/2013 10:30:58 AM
   
Change a role status based on Action.
I need to alter the Anonymous / _Unauth users role based on an action they take. Meaning, if they fill out a Biz Form, I want to elevate them from _unauth to a new roll, but without them having a user account. People go from a "Cold" status to "Warm" basically. We will then display some different webparts.

Does anyone have an Idea to do this?

User avatar
Kentico Legend
Kentico Legend
Brenden Kehren - 3/20/2013 6:53:07 PM
   
RE:Change a role status based on Action.
How long will this "status" be active for this visitor? Just their current session or every time they visit?

User avatar
Member
Member
egarrison-wte - 3/20/2013 9:05:58 PM
   
RE:Change a role status based on Action.
Current Session would be fine.

User avatar
Kentico Legend
Kentico Legend
Brenden Kehren - 3/21/2013 10:56:32 AM
   
RE:Change a role status based on Action.
Simply set a session variable (or even a cookie) when the form is submitted and you have checked your values, then on subsequent postbacks, check the value of that session variable.

If you want to grant then temporary access to other areas in the site for that session then you might have to create a temporary user with a security role assigned. Then create a scheduled task to remove those users after a given period of time.

User avatar
Member
Member
egarrison-wte - 3/21/2013 11:54:57 AM
   
RE:Change a role status based on Action.
I like the cookie idea. It will likely be easiest to check for it and alter our functions based on the cookie. Maybe I can just do If / then in the transformation.

User avatar
Kentico Legend
Kentico Legend
Brenden Kehren - 3/21/2013 12:02:56 PM
   
RE:Change a role status based on Action.
I'd suggest checking out this post. I'd also suggest creating a clone of that webpart and using it specifically for your custom biz forms and validation/session assignment. This way if Kentico updates the webpart it won't mess your coding up.