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
Does any one know how to check if a backend 'User' is logged in from within a razor View?
I have code that checks the membership but this just seems to be working for members and not backend users.
I am hoping someone can point me in the right direction.
This should help you.
var userTicket = new System.Web.HttpContextWrapper(System.Web.HttpContext.Current).GetUmbracoAuthTicket();
if (userTicket == null)
//the user is not autenticated
is working on a reply...
Write your reply to:
Image will be uploaded when post is submitted