Small width layout Medium width layout Maximum width layout Small text Medium text Large text
     Search
Downloads Downloads Directory Directory Forums Forums Forge Forge Blogs Blogs        Marketplace Marketplace Careers Program Careers
Community › Forums Register  |  

AppTheory specializes in solutions based on the DotNetNuke platform and has 2 employees on the DotNetNuke Core Team.
  Need Help?  
Professional technical support for DotNetNuke is available from DotNetNuke Corporation.
 


  Ads  
Biz Modules provides professional business modules and solutions for DotNetNuke
 


  Sponsors  

Meet Our Sponsors

Merak Mail Server
WebSecureStores -- ASP.NET & DotNetNuke Hosting Solutions
FCKeditor Project
Salaro -- Skins and more
OnyakTech
The best choice for your web site host, email hosting, and domain registration.
 


DotNetNuke Forums
 
  Forum  General DotNetN...  Chat About It!  Manually adding 'logout'?
Previous Previous
 
Next Next
New Post 7/4/2008 8:59 PM
Resolved
User is offline DavidToohey
258 posts
9th Ranked


Manually adding 'logout'? 

On a website I've done - where there's no current need for users to be able to log in, I've been trying to add a logout function just for admin.

I've just used a text/html module and included the logout (login) link as it would normally appear but this isn't doing anything, just reloading the page.

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

What have I done wrong?  Or is there a better way to go about this?

 

 
New Post 7/5/2008 7:53 AM
Accepted Answer 
User is offline Tom Kraak
331 posts
seablick.com
8th Ranked






Re: Manually adding 'logout'? 

David - either call login.aspx / logoff.aspx directly or include <dnn:LOGIN runat="server" id="dnnLOGIN" CssClass="YourClass" /> in your skin and "hide" it by blending the links in with your background color.


Tom Kraak
Seablick Consulting LLC
DNN OpenForce 08: Intro to SEO with DNN
 
New Post 7/8/2008 9:17 PM
User is offline DavidToohey
258 posts
9th Ranked


Re: Manually adding 'logout'? 

Thanks Tom

The logoff.aspx did the trick!  I wasn't wanting to hide anything visually in the skin but the direct .aspx link was certainly the solution I was hoping for!

Cheers

David

 
New Post 7/24/2008 1:04 PM
User is offline Peter Marchal
1 posts
www.wo.be
10th Ranked


Re: Manually adding 'logout'? 

Hi,

Is there a logout module available in dotnetnuke ?

 
New Post 7/25/2008 11:42 AM
User is offline DavidToohey
258 posts
9th Ranked


Re: Manually adding 'logout'? 
Modified By DavidToohey  on 7/25/2008 2:47:28 PM)

Hi Peter

There's no 'logout' module because one simply isn't needed.

Either <dnn:LOGIN runat="server" id="dnnLOGIN" CssClass="YourClass" /> included in the skin will do the same job (includes login if someone is logged in)...

or

a link with logoff.aspx will do the trick! 

eg.  to create a "logoff" module:

  1. add a text/html module
  2. set for viewing by registered users only
  3. add a text link or image link to logoff.aspx

That is effectively a "logoff module"!

Cheers


David

 
Previous Previous
 
Next Next
  Forum  General DotNetN...  Chat About It!  Manually adding 'logout'?
 


Forum Policy

These Discussion Forums are dedicated to the discussion of the DotNetNuke Web Application Framework.

For the benefit of the community and to protect the integrity of the project, 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 DotNetNuke.
2. Discussion or promotion of DotNetNuke product releases under a different brand name are strictly prohibited.
3. No Flaming or Trolling.
4. No Profanity, Racism, or Prejudice.
5. Site Moderators have the final word on approving/removing a thread or post or comment.
6. English language posting only, please.

 


AppTheory
Professional development for medium to large projects based on the DotNetNuke platform.
www.apptheory.com
OnyakTech
Modules for Help Desks, Live Chat, Project Management, CRM, Charting, Reporting, Scrolling Text/Images, Portal Community tools and much more.
www.OnyakTech.com
IHostASP.NET Provides the Ideal DNN Hosting
We will help you with the installation, configuration, and troubleshooting of your DNN portal, no task is too big or small for us. Unlike other companies we are not just providing a reliable hosting service, but we are also focused on providing the best DotNetNuke hosting service on the internet.
www.ihostasp.net

DotNetNuke Corporation   Terms Of Use  Privacy Statement
DotNetNuke®, DNN®, and the DotNetNuke logo are trademarks of DotNetNuke Corporation
Hosted by MaximumASP