Discussion:
[TYPO3-english] Login/Logout issues
Oliver Salzburg
2012-02-08 13:49:25 UTC
Permalink
I am experiencing some very weird behavior on our site.
These are the actors in my problem:

A login page using the standard felogin, set to "Hide in menu"
A login/logout button created through TS (http://pastie.org/3340855)
An "internal" page set to "Show at any login"

Now let's have a close look at the felogin on the login page.

I checked "Display Logout Form After Successful Login"

The Redirect Modes selected are (in order):
Defined by User Record
Defined by Usergroup Record
After Login (TS or Flexform)
After Logout (TS or Flexform)
After Login Error (TS or Flexform)

"User First Supported Mode from Selection" is checked

The redirects are set up as follows:

After Successful Login Redirect to Page: Internal Page
After Failed Login Redirect to Page: Login Page
After Logout Redirect to Page: Home Page

So far so good. I assumed a setup like this was straight-forward and,
somewhat, the default use case.
Here is what happens in Firefox (after clearing "Everything"):

* I click the Login link, sending me to the Login page
* I log in and am *not* redirected. I land back on the Login page,
showing the Logout form. Why?

The second issue takes a few more steps after the first two.

* Being logged in, I click the Logout link that was created through TS.
That link directs to Home Page with ?logintype=logout, so I end up on
Home Page
* I click the Login link, sending me to the Login page
* I log in and am not redirected.
* I click the Logout link, sending me to the Home Page
* I click the Login link, sending me to the Login page, which now shows
the Logout form, even though I had just logged out. In the navigation,
I also see the link to the "internal" page.

This also doesn't seem to be a caching issue. I can still access the
internal site, which I have never visited since I cleared my browser
cache.

I can now click the Logout link as many times as I want, It won't log
me out.
When I now click the Logout button presented to me on the Login page, I
am redirected to our 404 error page.

At this point, any input is welcome.

Cheers
Oliver
Oliver Salzburg
2012-02-09 13:25:24 UTC
Permalink
Post by Oliver Salzburg
I am experiencing some very weird behavior on our site.
A login page using the standard felogin, set to "Hide in menu"
A login/logout button created through TS (http://pastie.org/3340855)
An "internal" page set to "Show at any login"
Now let's have a close look at the felogin on the login page.
I checked "Display Logout Form After Successful Login"
Defined by User Record
Defined by Usergroup Record
After Login (TS or Flexform)
After Logout (TS or Flexform)
After Login Error (TS or Flexform)
"User First Supported Mode from Selection" is checked
After Successful Login Redirect to Page: Internal Page
After Failed Login Redirect to Page: Login Page
After Logout Redirect to Page: Home Page
So far so good. I assumed a setup like this was straight-forward and,
somewhat, the default use case.
* I click the Login link, sending me to the Login page
* I log in and am *not* redirected. I land back on the Login page,
showing the Logout form. Why?
The second issue takes a few more steps after the first two.
* Being logged in, I click the Logout link that was created through TS.
That link directs to Home Page with ?logintype=logout, so I end up on
Home Page
* I click the Login link, sending me to the Login page
* I log in and am not redirected.
* I click the Logout link, sending me to the Home Page
* I click the Login link, sending me to the Login page, which now shows
the Logout form, even though I had just logged out. In the navigation,
I also see the link to the "internal" page.
This also doesn't seem to be a caching issue. I can still access the
internal site, which I have never visited since I cleared my browser
cache.
I can now click the Logout link as many times as I want, It won't log
me out.
When I now click the Logout button presented to me on the Login page, I
am redirected to our 404 error page.
At this point, any input is welcome.
Cheers
Oliver
Ok, so you have to uncheck "Display Logout Form After Successful Login"
and everything works perfectly. Seems like the Logout form doesn't
support redirects.

If you build two options into a user interface that clearly conflict
with each other, why isn't there any kind of feedback? And this isn't
even "some extension". This is the core user login component.
Philipp Gampe
2012-02-09 21:27:12 UTC
Permalink
Hi Oliver Salzburg,
Post by Oliver Salzburg
Ok, so you have to uncheck "Display Logout Form After Successful Login"
and everything works perfectly. Seems like the Logout form doesn't
support redirects.
If you build two options into a user interface that clearly conflict
with each other, why isn't there any kind of feedback? And this isn't
even "some extension". This is the core user login component.
This display logout after login was added later on. Would you mind to open a
bug report:

http://forge.typo3.org/projects/typo3v4-core/issues

Viele Gr??e
--
Philipp Gampe ? PGP-Key 0AD96065
Oliver Salzburg
2012-02-09 23:19:49 UTC
Permalink
Post by Philipp Gampe
Hi Oliver Salzburg,
Post by Oliver Salzburg
Ok, so you have to uncheck "Display Logout Form After Successful Login"
and everything works perfectly. Seems like the Logout form doesn't
support redirects.
If you build two options into a user interface that clearly conflict
with each other, why isn't there any kind of feedback? And this isn't
even "some extension". This is the core user login component.
This display logout after login was added later on. Would you mind to open a
http://forge.typo3.org/projects/typo3v4-core/issues
Viele Gr??e
I think the issue has already been reported here:
http://forge.typo3.org/issues/29785

Or do you think this is an additional issue?

Cheers
Oliver
Björn Pedersen
2012-02-10 07:55:20 UTC
Permalink
Post by Oliver Salzburg
Post by Philipp Gampe
Hi Oliver Salzburg,
Post by Oliver Salzburg
Ok, so you have to uncheck "Display Logout Form After Successful Login"
and everything works perfectly. Seems like the Logout form doesn't
support redirects.
If you build two options into a user interface that clearly conflict
with each other, why isn't there any kind of feedback? And this isn't
even "some extension". This is the core user login component.
This display logout after login was added later on. Would you mind to open a
http://forge.typo3.org/projects/typo3v4-core/issues
Viele Gr??e
http://forge.typo3.org/issues/29785
Or do you think this is an additional issue?
Cheers
Oliver
And reading this bug, I think it is mainly a documentation problem.
You tell TYPO3 to show the logout form (on the same page as the login)
and at the same time want a redirection to happen. In this case TYPO3
thinks the show logout has higher 'priority' and decides to show the
current page. You can not get both things at the same time.

Bj?rn
Oliver Salzburg
2012-02-10 11:32:12 UTC
Permalink
Post by Björn Pedersen
Post by Oliver Salzburg
Post by Philipp Gampe
Hi Oliver Salzburg,
Post by Oliver Salzburg
Ok, so you have to uncheck "Display Logout Form After Successful Login"
and everything works perfectly. Seems like the Logout form doesn't
support redirects.
If you build two options into a user interface that clearly conflict
with each other, why isn't there any kind of feedback? And this isn't
even "some extension". This is the core user login component.
This display logout after login was added later on. Would you mind to open a
http://forge.typo3.org/projects/typo3v4-core/issues
Viele Gr??e
http://forge.typo3.org/issues/29785
Or do you think this is an additional issue?
Cheers
Oliver
And reading this bug, I think it is mainly a documentation problem.
You tell TYPO3 to show the logout form (on the same page as the login)
and at the same time want a redirection to happen. In this case TYPO3
thinks the show logout has higher 'priority' and decides to show the
current page. You can not get both things at the same time.
Bj?rn
Yeah, thanks, I got that.

You know what people usually do when they have two options that are
mutually exclusive?

This little guy here: http://en.wikipedia.org/wiki/Radio_button

But I assume advanced features like these will find their way into TYPO3
once we have all the important basics. Like a File Abstraction Layer.

Cheers
Oliver

Continue reading on narkive:
Loading...