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  |  

telerik -- supercharge your DNN websites
  Ads  
OnyakTech
 


  Sponsors  

Meet Our Sponsors

eUKhost.com is commited to offer exceptional UK Windows Web Hosting solutions with quality 24x7 technical support.Our plans support ASP.Net, ASP, ASP.NET Ajax extensions, XML, MSSQL, MySQL, PHP,DNN, multiple domains and Shared SSL as standard.
SmarterTools
Verndale
The Official Microsoft ASP.NET Website
Portal Webhosting - Hosting For Developers
Red-Gate Software
 


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.

 


CrystalTech
CrystalTech Web Hosting™ provides first-class service and support. Our value-packed ASP.NET plans offer DNN installation, SQL 2005 and up to 100 domain names starting at only $16.95 per month!
CrystalTech.com
DotNetNuke® in Sweden
All service of DotNetNuke® in Sweden.
Olsmar Konsult
DocuPeak Business Process Management RAD
Comprehensive enterprise and government process management. Forms, documents, indexing, workflow, views, content intelligence, capture, etc. Point and click rapid application development.
www.Webiplex.com

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