I create my dnn website and it contains 3 other sites
I have another project where I'm using to login my user and then redirect to respective dnn site
code I'm using is var user = DotNetNuke.Entities.Users.UserController.GetUserByName(portalId, userName); DotNetNuke.Entities.Users.UserController.UserLogin(portalId, user, portalName, IP, CreatePersistentCookie); this.Response.Redirect("https://mydnnsite.me"); //this site is my third site on same website with portalID 3
after it redirects to my site,I'm still seeing the login button but when I checked the admin logs I can see it says LOGIN SUCCESS
Whats am I doing wrong here
Hi Mark,
Thanks for the reply. Here I'm logging the user, say in portal 3, and redirecting the user to the same portal, not another portal. I have a registration page in another project where the user register and then the login page is called which is in my DNN site to log in the user via code automatically so when the user is redirected to the portal site he is already logged in.
I think I solved the issue, I was calling the login page by using my portal subdomain (https://portal1.mysite.me/loginPage.aspx) and when I called using the page with subdomain same as the portal 3 (https://portal3.mysite.me/loginPage.aspx) it worked.
Thanks Mark your reply really helped me.
These Forums are dedicated to the discussion of DNN Platform.
For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:
Awesome! Simply post in the forums using the link below and we'll get you started.