Developer forum

Forum » CMS - Standard features » Check if user logged into backend?

Check if user logged into backend?

Per Søgaard
Reply

I there a tag that shows if the user is logged into backend (without having Extranet module)?


Replies

 
Nicolai Høeg Pedersen
Reply

No.

You can do it Razor though: If(Dynamicweb.ExecutingContext.IsAdminLoggedIn()){}

 
Hans Ravnsfjall
Hans Ravnsfjall
Reply

Couldn´t get this to work at first, but figured out that as of now (DW9+ ?), this shouls look like this

if(Dynamicweb.Environment.ExecutingContext.IsAdminLoggedIn()){}

 

/Hans

 

 

You must be logged in to post in the forum