Please I need to check or verify if a user is logged in Programmatically. Basically I am creating another page on nopCommerce, where by some controls will be disabled until the user is logged in. Help in needed. Thanks.
you can track who is online in admin panel. just go to Customers>Online Customers then tick module enabled save it and refresh your browser. all users will be listed below.
you can track who is online in admin panel. just go to Customers>Online Customers then tick module enabled save it and refresh your browser. all users will be listed below.
Thanks for the quick response but that's not what I meant. I need to check this programmatically from an additional page on the shopping cart, not the admin.
An example could be;
if (User.Current.IsLoggedin) { //To do Logic here } else { //Do something else }
Has anyone followed this suggestion and run into a problem? I'm replicating the Login method of the CustomerController to authenticate a user on a remote service, such as a PhoneGap app. While I can get the user signed in/logged in, I seem never to be calling whatever is authenticating the user.
Can someone tell me where and when does nopCom indicate that the user is authenticated?