I have a custom utility page in the 8.2 instance, placed at this location:
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.
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:
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.