Developer forum

Forum » Dynamicweb 9.0 Upgrade issues » Where did Pageview.User.LoggedIn go?

Where did Pageview.User.LoggedIn go?

Imar Spaanjaars Dynamicweb Employee
Imar Spaanjaars
Reply

Hi there,

I upgraded to 9.0.2 today and now get an error on this code:

if (Dynamicweb.Environment.ExecutingContext.IsFrontEnd() && !Pageview.User.LoggedIn)

saying that

'Dynamicweb.Security.UserManagement.User' does not contain a definition for 'LoggedIn' 

Where did LoggedIn go?

Thanks,

Imar

 

 


Replies

 
Nicolai Pedersen
Reply

It is now called Dynamicweb.Security.UserManagement.User.IsExtranetUserLoggedIn()

or shorthand: Pageview.User.IsExtranetUserLoggedIn()

 
Imar Spaanjaars Dynamicweb Employee
Imar Spaanjaars
Reply

Found it, thanks. I was looking at IntelliSense on an instance of a User, and therefore the methods didn't show up. Not that it make sense to look at an instance though ;-)

Imar

 

You must be logged in to post in the forum