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  |  

  Need Help?  
Professional technical support for DotNetNuke is available from DotNetNuke Corporation.
 


  Ads  
The best choice for your web site host, email hosting, and domain registration.
 


  Sponsors  

Meet Our Sponsors

The best choice for your web site host, email hosting, and domain registration.
CrystalTech Web Hosting™
Webhost4life, specialists in DNN hosting
Mad Development is a full service interactive agency focusing on the merge of design, technology, e-commerce, and affiliate marketing by providing total website solutions.
AspDotNetStoreFront - E-Commerce by Design - The Leading ASP.NET shopping cart platform for developers!
Click here to go to dev.live.com for Windows Live developer resources
 


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
231 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
287 posts
seablick.com
9th 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 SEO Quickstart Guide
 
New Post 7/8/2008 9:17 PM
User is offline DavidToohey
231 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
231 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.

 


Bring2mind
Document Centric DNN Module Solutions
www.bring2mind.net
WEBPC™ DotNetNuke® sites for Small Business
WEBPC™ are internet consultants and web hosters catering to the small business market.
www.webpc.biz
Perpetual Motion Interactive Systems Inc.
A solutions company specializing in Microsoft enterprise technologies.
www.perpetualmotion.ca

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