Developer forum

Forum » Ecommerce - Standard features » DW10: Checking if a Frontend User is Logged In

DW10: Checking if a Frontend User is Logged In

Alex Guo
Reply

Replies

 
Alex Guo
Reply

Hi all,

In Dynamicweb 9, we used to be able to check if a user was logged in via:

Dynamicweb.Security.UserManagement.User.IsFrontendUserLoggedIn()

However, this method is no longer available in Dynamicweb 10.

I haven't managed to get this working.
Anyone have ideas?

 

 
Nicolai Pedersen Dynamicweb Employee
Nicolai Pedersen
Reply
This post has been marked as an answer

Hi Alex

It is now Dynamicweb.Security.UserManagement.UserContext.Current instead - see https://doc.dynamicweb.dev/api/Dynamicweb.Security.UserManagement.UserContext.html

Votes for this answer: 1

 

You must be logged in to post in the forum