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.