Disclaimer page shown when first entering section of the site

Paul Higgs asked on March 27, 2015 21:18

Hi,

I want to prompt users with a page where they agree to a disclaimer before being allowed into a section of the site. Once they agree then I don't need to prompt them again for that browser session. I'm using the portal mode of the CMS. Do I need to create a custom Webpart to handle this or there something already built in for this?

Thanks Paul

Recent Answers


Brenden Kehren answered on March 27, 2015 21:36

You could create a webpart or use a custom global event and check the users each time they authenticate. Add a custom field or two (reviewed and reviewed date) to the user object and redirect the user to your "disclaimer" on authentication if they have not reviewed the disclaimer. Then after they read that disclaimer, update the users values.

0 votesVote for this answer Mark as a Correct answer

Paul Higgs answered on March 28, 2015 08:21

Thanks, in this case it's not for authenticated users but any user to the site. But it sounds like a custom Webpart is needed, and I can just store the Accepted state to the session details.

Would I still use a custom global event, was thinking along the lines that the Webpart would detect that user hasn't accepted disclaimer, would redirect to a disclaimer page, then if accepted would store the details and then redirect back to the previous page which would now load as normal.

Thanks Paul

0 votesVote for this answer Mark as a Correct answer

Brenden Kehren answered on March 29, 2015 08:48

For users that are authenticating, a global event handler is probably the best way tot go. But if you're not requiring them to authenticate then a webpart might be better.

There is a Cookie disclaimer webpart already included in Kentico, you might check that out and see if it gives you any ideas on how it's working/storing the data per user.

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.