Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

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

HomeHomeDevelopment and...Development and...Building ExtensionsBuilding ExtensionsModulesModulesHow to call the dnn LogoutHow to call the dnn Logout
Previous
 
Next
New Post
4/29/2010 11:31 AM
 

 I have code in a custom module that checks if the session variables are not set and if so requires a user to login to the system again. We are performing additional login requirements that are handled first and then if all pass we log the user into the portal using the DNN login process

UserController.UserLogin(PortalId, objUserInfo2, PortalSettings.PortalName, Request.UserHostAddress, True)

now there is also code that determine the session variables are missing and then sends the user back to login. the problem is they are logged out of custom DB but not the DNN Portal:

            If Session("userBureauID") Is Nothing Or Session("userCompanyID") Is Nothing Then

                Response.Redirect(Globals.NavigateURL(loginPage) & "?timeOut=" & "true", True)

                ' log out of DNN???

            End If

the question is how do I force logout of DNN in code?
thanks

 
New Post
4/29/2010 10:21 PM
 
I would imagine that this would work being that the login is stored in sessions. vb.net --------- Dim blah As DotNetNuke.UI.UserControls.User blah.Session.Abandon()
 
New Post
7/28/2010 1:53 PM
 
I am still trying to find a way to logout of the DNN session. This method does not work nor do any others I have found, seems odd to me that there is no simple way to force a log out in DNN. Any help please
 
New Post
7/28/2010 2:08 PM
 
Response.Redirect(Globals.NavigateURL(TTSRoutines.giPunchinPage, "Logoff"), True) I thought it should be pretty simple. Thanks all for your help
 
Previous
 
Next
HomeHomeDevelopment and...Development and...Building ExtensionsBuilding ExtensionsModulesModulesHow to call the dnn LogoutHow to call the dnn Logout


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.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out