Author Topic: forum login question  (Read 132 times)

paulspage

  • Hero Member
  • *****
  • Posts: 706
    • View Profile
    • www.paulrokicki.com
forum login question
« on: January 17, 2012, 02:06:21 AM »
anyway to make the forum stay on currently loaded page after login? if i click on an email notification link to a topic i am watching and I login in order to reply to the topic the forum goes to the main forum page listing all the sub forums instead of staying on the page where the topic was that i want to reply to. this has been going on forever and im just wondering if its only me that gets bothered by this or do people simply dont care that they have to find their topic again after logging in.

EpicCyndaquil

  • The not so scary
  • Administrator
  • Hero Member
  • *****
  • Posts: 1006
    • View Profile
    • Epic Cyndaquil
Re: forum login question
« Reply #1 on: January 17, 2012, 10:11:05 AM »
I think the only way to do that would be with some form of redirect, which SMF probably doesn't allow for. Why? Because that could easily be used to redirect to a phishing URL.

paulspage

  • Hero Member
  • *****
  • Posts: 706
    • View Profile
    • www.paulrokicki.com
Re: forum login question
« Reply #2 on: January 17, 2012, 11:52:06 AM »
im a member of other forum and they are all staying on the topic page after i login. it would be so much better if the forum actually kept you logged in after i tell it to keep me logged in. does the forum use cookies to keep people logged in? because this doesnt seem to want to work for me. I had this problem previously and cant get it to keep me logged in. on other sites like youtube or google+ i have no problem staying logged in.

Piotr GRD

  • Full Member
  • ***
  • Posts: 249
    • View Profile
    • Piotr GRD Network
Re: forum login question
« Reply #3 on: January 17, 2012, 12:21:43 PM »
@ EpicCyndaquil

Do you have an account on some other SMF 2.0 forums?
In example the Simple Machines Community. Go to http://www.simplemachines.org/community/index.php?topic=463103.0 and try to login using the top left login form. After succesfully login you'll find out that you stay on the page ?topic=463103.0 (after logout you're redirected to the main page, though).

Why in here this doesn't work?...
I believe that this may be because of the "pretty URLs" plugin that is not perfect and doesn't let the SMF to track where the visitor was before making the POST with login details.


@ Paul

Some work-around...
Instead of looking again for the right topic - go one step back in your browser and refresh the page - you should be logged in and on the right page.



As for the "keep me logged in"...
I always logout and clear all the cookies every time I close my browser. But for experiment I've changed my browser settings to not delete cookies and I can see that the SMFcookie for thehosthelpers.com is set correctly as being valid "always" (for 6 years) and it keeps me logged in. In Firefox it's easy to view all the cookies (at least in v3.0), so try to check if you do have such "SMFCookie145" cookie for thehosthelpers.com domain and it's valid until some date far away in the future or not.

« Last Edit: January 17, 2012, 12:42:27 PM by Piotr GRD »