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  |  

PortalWebHosting
  Ads  
Active Modules -- Active Forums for DotNetNuke
 


  Sponsors  

Meet Our Sponsors

MaximumASP
SourceGear - Tools for Developers
.: CounterSoft :.
telerik
ExactTarget email software solutions
Merak Mail Server
 


DotNetNuke Forums
 
  Forum  General DotNetN...  Extend It! ( Pr...  how to log the user out using code behind ?
Previous Previous
 
Next Next
New Post 6/14/2008 8:04 AM
User is offline glory_w
6 posts
10th Ranked


how to log the user out using code behind ?  

hay all,

i'm developing a simple module ..and i'm trying to log the user out when a specific error occures ..

and the code :

Try
            fillGridOutbox()
            pnlInbox.Visible = False
            pnlOutbox.Visible = True
            PnlCompose.Visible = False
Catch ex As Exception
            Response.Redirect("myLogin/tabid/94/Default.aspx")
End Try

when an exception occures, the response works fine ..but i want also to log the user out ..so can he log in again ..

 

anyone can help me.

thanx in advance.

 

 
New Post 8/15/2008 8:34 PM
User is offline Eric Garza
33 posts
10th Ranked


Re: how to log the user out using code behind ?  

C# Code to perfom this:

// Clear User Cache
DataCache.ClearUserCache(PortalId, Context.User.Identity.Name);

// SignOut
PortalSecurity objPortalSecurity = new PortalSecurity();
objPortalSecurity.SignOut();

 


Eric Garza
EGI Consulting
Dallas, TX
(972) 767-5930
Brian Dukes
EGI Consulting  - Logo
EGI Consulting is an e-business solutions provider.
 
Previous Previous
 
Next Next
  Forum  General DotNetN...  Extend It! ( Pr...  how to log the user out using code behind ?
 


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.

 


R2i - Delivering Serious DNN Services & Solutions
Award Winning Design, Skin construction, Custom Modules and Consulting Services for the Enterprise organization. R2i is the DNN:Map module Project Lead and one of the largest DNN service providers with offices in New York City, Virginia and Baltimore.
www.bi4ce.com
"SalarO" Skinning Graphic Design Branding Services
SalarO develops packaged & custom skins for your DNN at prices you can afford. SalarO is also developing Module development, Hosting, Branding/Logo design as well as Content Transfer Services to complement the core skinning solutions.
www.salaro.com
Data Springs Inc. - Module Development
Data Springs is a leader in the DNN community offering high quality modules, custom module development, enhancements to the DNN core product and overall DNN support.
www.datasprings.com

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