Prime Login Return

default behaviour? - Prime Login Return

default behaviour?

by martti » Fri May 11, 2018 6:31 am

From the develoment topic
primehalo wrote: Are you referring to the board's default behavior without this extension installed or the default behavior of this extension when it is installed? Without this extension, if I'm on a post and not logged in, and then log in, I am always taken back to the board's home page. With this extension I am returned to the post I was just viewing.
That's not the board's default behaviour I'm experiencing (phpBB 3.2.2, PHP7.2).
When trying to reach
  • a topic in a forum only accessible for registered users
  • a page in the ucp
  • a page in the mcp
I got redirected to the same page, after login.
To test:
  • I'm on a page with limited access.
  • I log out on a different tab in my browser
  • I refresh the page with limited access
  • I'm redirected to the login
  • After login I'm redirected to the same page.
When posting a form, and the session is expired, you come back to the same posting page, the content gets lost, however. That would be something nice to have, that the content would not be lost.
primehalo wrote: If you're referring to the default behavior of this extension, then if I'm in the user control panel (or somewhere else that requires a user to be logged in) and log out it will not try to take me back to that page.
That's true, the default board's behaviour is that with log out, you land on the index page.
With this extension you land either on the same page, if the access is public. Otherwise you land on the login form.
User avatar
martti
Registered User
Posts: 735
Joined: Thu Jul 31, 2014 8:23 am
Location: Belgium
Contact:

Re: default behaviour?

by primehalo » Fri May 11, 2018 6:43 pm

martti wrote:From the develoment topicWhen trying to reach
  • a topic in a forum only accessible for registered users
  • a page in the ucp
  • a page in the mcp
I got redirected to the same page, after login.
To test:
  • I'm on a page with limited access.
  • I log out on a different tab in my browser
  • I refresh the page with limited access
  • I'm redirected to the login
  • After login I'm redirected to the same page.
What you describe is the default behavior for the board, but that's not the default behavior my extension aims to fix. You're talking about being on a page that requires you to be logged in, and then logging out on a separate tab, then going back to the first tab and reloading and then the board presents the login page so that you can access the page you were on.

I'm talking about what happens when you're a guest on a normal page accessed by anyone, such as a viewing a forum or viewing a topic, then clicking the login link which brings you to the login page. The board's default behavior after that is to bring you to the home page. My extension changes this to bring you back to the page you were on when you clicked the link to login.
martti wrote:When posting a form, and the session is expired, you come back to the same posting page, the content gets lost, however. That would be something nice to have, that the content would not be lost.
I agree, but that's way beyond the scope of this extension.
Ken F. Innes IV
My Extensions | My MODs | My Topics | My Site: Absolute Anime
Experience the wonder of Japanese Animation!
User avatar
primehalo
Former Team Member
Posts: 2816
Joined: Fri May 06, 2005 5:58 pm
Location: Redding, CA
Contact: