Advertisement:

Author Topic: How does SMF know how to return back to the last topic after logging in?  (Read 620 times)

Offline Study Force

  • SMF Hero
  • ******
  • Posts: 3,526
    • StudyForcePS on Facebook
    • @studyforceps on Twitter
Curious if it's based on cookies, and if so where are they created and how is their information retrieved?

Offline Arantor

  • Resident Overthinker
  • SMF Friend
  • SMF Legend
  • *
  • Posts: 70,760
    • StoryBB/StoryBB on GitHub
Re: How does SMF know how to return back to the last topic after logging in?
« Reply #1 on: February 12, 2019, 02:33:07 AM »
It should be in session, see LogInOut.php.
Don’t try to tell me that some power can corrupt a person. You haven’t had enough to know what it’s like.

No good deed goes unpunished / No act of charity goes unresented.

Offline Study Force

  • SMF Hero
  • ******
  • Posts: 3,526
    • StudyForcePS on Facebook
    • @studyforceps on Twitter
Re: How does SMF know how to return back to the last topic after logging in?
« Reply #2 on: February 12, 2019, 09:45:06 AM »
Would you happen to know if it continues to store the topic ID data for the user even after registering?

Offline Arantor

  • Resident Overthinker
  • SMF Friend
  • SMF Legend
  • *
  • Posts: 70,760
    • StoryBB/StoryBB on GitHub
Re: How does SMF know how to return back to the last topic after logging in?
« Reply #3 on: February 12, 2019, 09:55:10 AM »
I honestly don’t remember, and even if I did remember, it wouldn’t be in the context of a 13 year old platform where compared to its later versions, has a different registration flow... ;)
Don’t try to tell me that some power can corrupt a person. You haven’t had enough to know what it’s like.

No good deed goes unpunished / No act of charity goes unresented.

Offline Study Force

  • SMF Hero
  • ******
  • Posts: 3,526
    • StudyForcePS on Facebook
    • @studyforceps on Twitter
Re: How does SMF know how to return back to the last topic after logging in?
« Reply #4 on: February 12, 2019, 10:05:54 AM »
Yeah I'll be upgrading soon, after testing all my customization with the new code and  after several of the mods are made available again, but in the meantime I need to figure this out