I have a custom utility page in the 8.2 instance, placed at this location:
-website
|_sitecore
|_minions
|_mypage.aspx
In the Page_Load
, there is only one method to check if user is logged in. If not, it will redirect to the login page. This works fine.
Now, I have deployed the files to a 9.3 instance and the custom page never loads. It redirects to the login page.
On debug, Sitecore.Context
is null & hence Sitecore.Context.IsLoggedIn
is false.
When I move my page to the admin folder in 9.3, it works fine:
-mysite93
|_sitecore
|_admin
|_minions
|_mypage.aspx
I'm logged in as admin in both instances.
Why does it work in 8.2 even when outside the admin folder but not in 9.3.
I want to keep my custom folder outside the admin
folder and still make it work for 9.3. Is it possible. If yes, how.
\sitecore\admin
folder and a new page under a custom folder. Do you have different authentication settings in IIS on yourminions
folder?<site name="admin" virtualFolder="/sitecore/admin" physicalFolder="/sitecore/admin" enableTracking="false" enableWorkflow="true" domain="sitecore" loginPage="/sitecore/admin/login.aspx" />