Thursday, July 18, 2013

DotNetNuke Quick Login/Logout

Many a times we face some problems while designing skins, we forget to place the Login control link in skin correctly as a result, we cannot log in or log out from our site. Also this is desirable for informative dotnetnuke site where public login is not required. If we remove the login link the worst possible scenario would be we can never log in as host or admin now, which in fact will be a bigger mess since we cannot manage our own pages.

So, what is the solution how do we bring up our login page in DNN without having clicking on any link. Its very simple, just go to the browser URL and append some keyword after the extension and you will be brought up the login page. So what is the keyword, it is "?ctl=login".

For example, if your site URL is as below

http://www.mydotnetnukesite.com/default.aspx

after appending the above keyword it should look like

http://www.mydotnetnukesite.com/default.aspx?ctl=login

NOTE: If the page is already having any query string we need to use '&' in place of '?'.

Now once we logged in what is the way out, how do I sign out. Again some magical keywords, this time it is "ctl=logoff".

For example, if your site URL is as below

http://www.mydotnetnukesite.com/default.aspx

after appending the above keyword it should look like

http://www.mydotnetnukesite.com/default.aspx?ctl=logoff

and you will sign out eventually. 

These are very handy tips for some of the dotnetnuke developers who creates site only for information purpose but do not want log in link to be displayed to the public but want to display the link to the admin or host. Admin and host can use the above tips to log in and log out from the dotnetnuke site.

Hope the above is clear to all. Happy Dotnetnuke Login and Logout.

5 comments:

  1. This comment has been removed by the author.

    ReplyDelete
  2. Great article.

    If you'd like to add a Logout button to the DNN Control Panel please check out the Logout Control Panel Extension that I built.

    You can find a free download for it on my blog at the following URL:

    http://www.mikesmeltzer.com/blog/post/246

    ReplyDelete
  3. Hello I am trying to add the login button my site, at the top hand portion on the "About" page. How can I best do this? : www.diocs.org

    ReplyDelete
    Replies
    1. Just place the dnn:Login control on the desired position on the skin.ascx for the About us.

      Delete
  4. Mummys Gold Casino App - JM Hub
    Discover the Mummys Gold Casino App for 충청북도 출장마사지 Android! ⭐ The app is quick to download, 부산광역 출장샵 Download 의정부 출장마사지 this 부천 출장안마 mobile casino app 의왕 출장안마 for a second.

    ReplyDelete