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  |  

$4.95 Windows Hosting at Webhost4life.com
  Ads  
Aspose - The .NET & Java component publisher
 


  Sponsors  

Meet Our Sponsors

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.
SteadyRain
DataSprings - Great Ideas. Always Flowing.
R2integrated - formerly bi4ce
Jango Studios - Skins, Modules and Hosting for DotNetNuke
 


DotNetNuke Forums
 
  Forum  General DotNetN...  Chat About It!  Redirect after Logout no longer works in 4.8.2
Previous Previous
 
Next Next
New Post 6/2/2008 6:13 PM
User is offline Rodney Joyce (Can't Post with old Account)
52 posts
10th Ranked


Re: Redirect after Logout no longer works in 4.8.2 

For the record, here is the original fix and here is the new issue I raised.

Alex Shirley has reported that this is no longer an issue in DNN 5.0 beta 4 as per his comment here.

I just want to add that I think Alex Shirley may be a robot ;)  I added a comment (I am in Australia and he is in the UK) and within a minute I had a reply! Impressive stuff...


Thanks,
Rodney
Smart-Thinker - Social Networking modules for DotNetNuke
The DotNetNuke Directory - Are you listed?
PokerDIY - Example Implementation of DNN Social Network
Do use DNN a lot? Try the DotNetNuke Toolbar to save you time!
 
New Post 7/4/2008 9:24 AM
User is offline SupaHoopsa
87 posts
10th Ranked


Re: Redirect after Logout no longer works in 4.8.2 

 Scippy One wrote

*************************************************************

Well! I've solved the logout issue about DNN 4.8.2 version.

Go under admin\Authentication directory of your DNN installation and open the Logoff.ascx.vb file. Here you must modify the redirect sub in this way:

************************************************************

         Private Sub Redirect()
            ' Redirect browser back to portal logout page
            Response.Redirect(RedirectURL, True)
        End Sub

************************************************************

Then add the redirectURL property (copy and paste below)

*************************************************************

         Protected ReadOnly Property RedirectURL() As String
            Get
                Dim _RedirectURL As String = ""

                Dim setting As Object = UserModuleBase.GetSetting(PortalId, "Redirect_AfterLogout")

                If CType(setting, Integer) = Null.NullInteger Then
                    If Not Request.QueryString("returnurl") Is Nothing Then
                        ' return to the url passed to signin
                        _RedirectURL = HttpUtility.UrlDecode(Request.QueryString("returnurl"))
                        ' redirect url should never contain a protocol ( if it does, it is likely a cross-site request forgery attempt )
                        If _RedirectURL.Contains("://") Then
                            _RedirectURL = ""
                        End If
                    ElseIf PortalSettings.LoginTabId = -1 And PortalSettings.HomeTabId <> -1 Then
                        ' redirect to portal home page specified    
                        _RedirectURL = NavigateURL(PortalSettings.HomeTabId)
                    Else
                        ' redirect to current page
                        _RedirectURL = NavigateURL(Me.TabId)
                    End If
                Else ' redirect to after logout page
                    _RedirectURL = NavigateURL(CType(setting, Integer))
                End If
                'replace language parameter in querystring, to make sure that user will see page in correct language
                If UserId <> -1 Then
                    If User.Profile.PreferredLocale <> CultureInfo.CurrentCulture.Name Then
                        _RedirectURL = UrlUtils.replaceQSParam(_RedirectURL, "language", User.Profile.PreferredLocale)
                    End If
                End If

                'check for insecure account defaults
                Dim qsDelimiter As String = "?"
                If _RedirectURL.Contains("?") Then
                    qsDelimiter = "&"
                End If

                Return _RedirectURL

            End Get
        End Property

 

Now the logout redirect to logout page setted in the user setting or to home page if nothing is setted

 

I have just implemented this piece of code and yes it does fix the bug.

HOWEVER, it also seems to have introduced a new one. When a user logs out of the portal, if they log back in straight away they get redirected to the page they were on and not the home page.

Obviously once answer would be to reset the "redirect on Login" switch to the Home page, but I have over 100 child portals and I can't face going through each of these one at time!!!

I need the redirect at logoff for one VERY VERY important customer, but don't want all my other customers compromised by this.

So any ideas how I can get around this?

 

 
New Post 7/8/2008 7:50 AM
User is offline SupaHoopsa
87 posts
10th Ranked


Re: Redirect after Logout no longer works in 4.8.2 

** POP **

Any ideas as to how to correct this behaviour?

 

 
New Post 7/14/2008 3:06 AM
User is offline SupaHoopsa
87 posts
10th Ranked


Re: Redirect after Logout no longer works in 4.8.2 

ANOTHER Problem

If a user double clicks on the logout link (dnn:Login control), it simply logs the user out of the portal and leaves them in the home page - it doesn;t appear to call my logout page that I set in the user settings!

Any ideas???

 
New Post 8/20/2008 2:59 PM
User is offline Al Williams
60 posts
www.sunsethill.ca
10th Ranked




Re: Redirect after Logout no longer works in 4.8.2 

I'm running 4.8.4 with Friendly URL's turned on.  I've set the re-direct to the Home page - yet when users log out, they are not re-directed.  Does anyone have a fix for  4.8.4 - my client is insistent on returning users to the home page after logging out...

 
Previous Previous
 
Next Next
  Forum  General DotNetN...  Chat About It!  Redirect after Logout no longer works in 4.8.2
 


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.

 


Need Help with your DotNetNuke website?
Jango Studios offers exclusive DotNetNuke Skin Design, Module Development, Web Marketing and Web Hosting.
www.jangostudios.net
Where Every Home is an Investment
Where Every Home is an Investment
www.nestbrokers.com
Faculty of Graduate and Postdoctoral Studies
At the graduate level, the University of Ottawa offers more than 180 graduate certificates, master's degrees and PhDs, as well as interdisciplinary programs such as Women's Studies and Canadian Studies. Many postdoctoral opportunities are available in both the sciences and the humanities. For further information, please consult the site of the Faculty of Graduate and Postdoctoral Studies.
www.grad.uottawa.ca

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