This project is read-only.

Age protect site

Topics: Administration
Sep 29, 2011 at 4:32 PM

I am working with a customer to age protect an orchard site we have created for them.  We need a popup to come up when someone visits any page the first time to make sure they are of certain age (the site is for an new alcoholic beverage).  Does anybody have any way we can do this?  I am thinking to have have an Anonymous user that cannot view a page unless it been authenticate buy only their age.  Add a cookie to the browser once they have been verified.

I am looking at the Orchard.Users module but this looks like its only for editing the profile mainly.


Any help would be greatly appreciated

Sep 29, 2011 at 6:05 PM

With a filter maybe?

Sep 29, 2011 at 7:56 PM

I am looking at the code LuxitRedirect module, and I think adding a RouteDictionary to catch all pages and then possible remove that route dictionary after the cookie has been created?  Doable?

Sep 29, 2011 at 8:38 PM

That looks convoluted to me, and I'm not sure it would even work. Maybe considering this as a form of authentication would be the simplest. The authentication system in Orchard is fully replaceable.