Is it possible to use the EPiServer Login control on custom page?

I have the situation where we use two membership providers, and we want our two user bases (customer and epi users) to use different login pages. We achieve that by using a custom login proxy page that routes the user to the right login page based on the original page the user where trying to go to.

The customer part is easy since we want it to totally cusom, we want the epi part to be like the default epi login but I can't find out if there is an EPiLogin control or anything like that. I tried to forward all the epi users to the /Util/Login.aspx and works to some extent, the login part is fin but the users is not redirected to the page he or she where trying to access; that is, the user stays on /Util/Login.aspx if the url is not manually changed.

Is there a trick to get the /Util/Login.aspx to work as it should even though it is not the default login page? Or is there a way to use the login control outside of the /Util/Login.aspx page?

#49366 Mar 15, 2011 9:28
  • Member since: 2008

    Hi Tomas,

    As I see it you could either add  the return url in the query string like EPi does.

    I.e. going to mysite/admin/edit will send me to mysite/Util/login.aspx?ReturnUrl=/admin/edit

    or if you want your own page have a look at the login.aspx page in the public templates



    #49369 Mar 15, 2011 12:46
  • Member since: 2007

    There are noproblems in creating you own loginpage for episerver like the one they are using in EPServer is using standard .net profiles so have a look at the public templates as petter mentioned. Then just change the url in your web.config to be a page in your solution instead of util/login.aspx and you are good to go :)

    #49502 Mar 21, 2011 22:58
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.
Please login to post a reply