Project

General

Profile

Actions

Bug #20660

closed

Redirect after logout does not work

Added by Thomas Deinhamer over 15 years ago. Updated about 6 years ago.

Status:
Closed
Priority:
Should have
Category:
Communication
Target version:
-
Start date:
2009-06-24
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
4.2
PHP Version:
5.2
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

Using the felogin extension included in TYPO3,
enabling a redirect to another page after logout does not work.

The structure is like this:
ROOT
Home (Shortcut to first subpage); ID: 1
-- Login (Hide at login); ID: 2
-- Logout (Show to specific fe-group only, redirect to Home at logout); ID: 3

When I call the link "index.php?id=3&logintype=logout" I will get logged out, but I won't get redirected to Home (ID: 1) nor further to Login (ID: 2). I will stay at the page Logout (ID: 3).

Is it possible that, after the logout, I won't get redirected. because I have no access to the Logout (ID: 3) anymore?

(issue imported from #M11396)


Files

felogin_4.2.diff (1.63 KB) felogin_4.2.diff Administrator Admin, 2009-09-05 17:50
felogin_4.3.diff (1.68 KB) felogin_4.3.diff Administrator Admin, 2009-09-05 17:50

Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Bug #20503: Redirect at login tp page does not work on 4.3.0 alpha3Closed2009-05-25

Actions
Actions #1

Updated by Steffen Kamper over 15 years ago

use a typoscript object with the plugin to do the redirects. The redirect can only be processed after the page is called again, and if this isn't possible, you need a general object.

Actions #2

Updated by Thomas Deinhamer over 15 years ago

How to implement the typoscript object properly? I already tried to replace my content element (plugin) with typoscript, but it doesn't seem to work. Do you have some example code for me? Thanks! =o)

Actions #3

Updated by Bernd Gaspers over 15 years ago

Sorry for german

habe das gleiche Problem auch bei der TYPO3 4.3alfa3

Eingebunden als Plugin

Beim login oder logout geht der Redirect nur einmal dann nicht mehr, wenn der Cache gelöscht wird geht wieder nur einmal

Actions #4

Updated by Oliver Hader over 15 years ago

Hi,

in TYPO3 4.2.x this should work, since the plugin is defined as USER_INT:

plugin.tx_felogin_pi1 = USER_INT

In TYPO3 4.3-alpha3 there was a problem that was fixed yesterday. Use the latest SVN Trunk to test it.

Olly

Actions #5

Updated by Bernd Gaspers over 15 years ago

Hallo

neues SVN eingespielt

Bleibt bei beim ersten mal geht es, dann nicht mehr.
Cache gesäubert und es geht wieder nur einmal.

MfG
Bernd Gaspers

Vorschlag zur Änderung im BE
https://www.typo3-jack.net/typo3-german-lists-netfielders-de/20910-re-typo3-german-fe-login.html

Actions #6

Updated by Oliver Hader over 15 years ago

Hi Bernd,

ich kann aus dem Link bzgl. des Vorschlags gar nichts herauslesen...

Please try to write in English to offer others to possibility to post their ideas and comments. How are you using the felogin extension? Is it used a regular content element or did you integrate it by using TypoScript? What is the setting for the redirect mode on your site?

Actions #7

Updated by Thomas Deinhamer over 15 years ago

I tried it with a typsocript implementation now,
but it still doesn't seem to work.

Here some more information:

ROOT (0)
- Home (1)
- - Login (2)
- - Restricted Section (3)
- - - Menu (4)
- - - - Logout (5)

Home (1) is public accessible and redirects to the first subpage found.
Login (2) is not visible when the user is logged in.
Restricted Section (3) has access set to a specific fe-usergroup and 'Include subpages' is set to TRUE.
Menu (4) is a Sysfolder just to to use as container for a TMENU 'special=directory', which then renders a menu with Logout(5).
Logout (5) contains the felogin typoscript definition with a logout-redirection to Home (1).

In my case Logut (5) is hidden in the menu, because I dont' want to have the user click twice to logout, first on the menu item and then on the logout form button.

I use a link generated with typoscript to logout which looks like /index.php?id=6&logintype=logout.

Whether if I use the form button nor the generated link work. They both log me out, but I will remain on the page with the address /index.php?id=6&logintype=logout.

Here is the typoscript of the felogin plugin, which will be ONLY included on the Logout (5) page:

tpl.content < plugin.tx_felogin_pi1
tpl.content {
redirectPageLogout = 1
redirectMode = logout
redirectFirstMethod = 1
}

The variable tpl.content is then replaced with a marker in my html template - this works fine, the plugin will be shown in the frontend if I call tzhe page directly (as it is hidden in menu tho).

Any ideas?

Actions #8

Updated by Thomas Deinhamer over 15 years ago

Any updates?

Actions #9

Updated by David Slayback about 15 years ago

I have attached a fix that works for me. For both 4.2 and 4.3. It handles the redirection correctly for the cases of if you login on a Hide At Login page, and logout on a Show At Any Login page. I have needed both cases in a client's site.

I would like to see this fixed in the next version of 4.2.9 and also added to 4.3 before release.

Actions #10

Updated by Chris topher about 15 years ago

Hi David,

thanks for your patches!

Please send a message with the patch for 4.3 attached to the core list:
See here for more information:
http://typo3.org/teams/core/core-mailinglist-rules/

Actions #11

Updated by David Slayback about 15 years ago

All right, I posted it on the core list. Thanks -- forgot about that step.

Actions #12

Updated by Steffen Kamper about 15 years ago

commtted to trunk. rev 5968

Actions #13

Updated by Benni Mack about 6 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF