Learn More





Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...Login/Logout button in a pageLogin/Logout button in a page
New Post
8/6/2013 4:54 AM


I am new in Dnn world so maybe I request help. I made some online research but without any success.

I am using Dnn 7.

I have created a page and add the account login module in it. I would like that page e replaced by another page showing the disconnect button once the user is registred.

that I achieve with permission and it works pretty cool but I cannot figure out the right way to put the logout button in the page. I tried to add the following code  but it obviously do not works :

<dnn:LOGIN runat="server" id="dnnLOGIN" CssClass="login" /> | <dnn:USER runat="server" id="dnnUSER" CssClass="user" />

<a id="dnn_Login_cmdLogin" class="SkinObject" href=" __doPostBack('dnn$Login$cmdLogin','')">Login</a>
<a id="dnn_Login_cmdLogin" class="SkinObject" href=" __doPostBack('dnn$Login$cmdLogin','')">Logout</a>

Can someone tell me the right way to insert the logout button in  a page (being understood I do not want it in the skin so displyed everytime )?

Thanks in advance



New Post
8/7/2013 3:40 AM
Instead of this proceed with the usual way as:
place the account login module to your custom page.
Make this page as your home page for site.
On admin>site settings>user account settings>Login setting, set redirect after login field.
The logout button will come automatically

Sunil Kumar [ DNN Developer, Mindfire Solutions,India ]
New Post
8/7/2013 9:09 PM
Hi Kumar

Thanks for the reply.
I am not sure I fully understand you. I tried what you suggest but no logout button is displayed anywhere. This method seems to be working just fine if the skin has :

then the lonin button is changed to logout button

but in my case, i do want to display a logout button in a different page that the login one

Maybe I am repeating but I have no idea how to do it in a proper way. Can you please guide me a little bit more with your explanations please.

Thanks in advance

New Post
8/8/2013 4:52 AM
Ok. if you are using a custom skin file, please check some points.
1. Have u registered the Login.ascx file to your skin file.
2.Have u used the same skin file for both pages (before login and after login).
The code you are using "" is ok.

Sunil Kumar [ DNN Developer, Mindfire Solutions,India ]
New Post
8/8/2013 12:49 PM
The Login and Logout button comes from the same tocken,  so it would not be able to serperate this for a Login and a logout page.
HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...Login/Logout button in a pageLogin/Logout button in a page

These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
Try Evoq
For Free
Start Free Trial
a Demo
See Evoq Live
Need More Information?