Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Hi,
I've created a custom section at /umbraco/customsection/
How can I insure that this page cannot accessed directly when the user is not logged into Umbraco? For example
http://website.com/umbraco/customsection/mypage.aspx
If the user is not logged in I would like them to be redirected to
http://website.com/umbraco/umbraco.aspx
Thanks
Rich
Make the pages inherit from umbraco.BasePages.UmbracoEnsuredPages in the businesslogic assembly.
That's how the backoffice does its security.
Cheers Slace
Slight typo there, it is umbraco.BasePages.UmbracoEnsuredPage - no "s".
Thanks for this, exactly what I was looking for.
Ah I was close :P
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.
Continue discussion
Securing custom section
Hi,
I've created a custom section at /umbraco/customsection/
How can I insure that this page cannot accessed directly when the user is not logged into Umbraco? For example
http://website.com/umbraco/customsection/mypage.aspx
If the user is not logged in I would like them to be redirected to
http://website.com/umbraco/umbraco.aspx
Thanks
Rich
Make the pages inherit from umbraco.BasePages.UmbracoEnsuredPages in the businesslogic assembly.
That's how the backoffice does its security.
Cheers Slace
Slight typo there, it is umbraco.BasePages.UmbracoEnsuredPage - no "s".
Thanks for this, exactly what I was looking for.
Ah I was close :P
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.