Try our conversational search powered by Generative AI!

Using a different loginpage for extranet users while webeditors/webadmins should go to EpiServer loginpage



We have made a loginpage for extranetusers, and set the path in web.config

<authentication mode="Forms">

         <forms name=".EPiServerLogin" loginUrl="/Logg-deg-inn" timeout="120" />



This works fine, but the Webeditors/webadmins also get redirected, and we want them to go to the episerver loginpage.
We have set the Episerverlogin to go to: http://<episerversite>/Login/ in the sitesettings in web.config.
How can we solve this?





Oct 09, 2008 8:51
It's been a while since you posted this. Did you find a solution to your problem? If not, post back and I will explain how we solved it for a customer :)
Nov 03, 2008 14:55
You could always explain it to me Cool
Nov 08, 2008 12:11

ASP.NET can only have one loginUrl. All unauthenticated users must go through this single page. But from this page you can redirect the user to the "real" login page, using returnUrl from the querystring to find out to wich page to redirect.

I used this solution a couple of years ago on EPi 4.61. The returnUrl contained the page id. I used the page id to know wich login page that should be used.


Nov 14, 2008 12:36

I solved this using a different aproach. I've explained my solution in the blog post "Authenticate users from different sources" at

Lars Øyvind Bodahl 

Edited, Dec 03, 2008 0:10
This thread is locked and should be used for reference only. Please use the Episerver CMS 7 and earlier versions forum to open new discussions.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.