Page 1 of 1

[mod portal] Logging in redirects to main page

Posted: Fri Jan 19, 2018 6:47 pm
by orzelek
New mod portal seems to have pretty short life time of login cookie.
And when you are on mod page and login it redirects you to main page forcing you to search for mod again or use a bookmark again.

Re: [mod portal] Logging in redirects to main page

Posted: Tue Jan 23, 2018 11:46 am
by HanziQ
Works fine for me, do you have cookies enabled on your side?

Re: [mod portal] Logging in redirects to main page

Posted: Tue Jan 23, 2018 1:21 pm
by staviq
I can confirm problems with login cookie timeout, 90% of the time i need to login again.

What is even more frustrating, if i forget to log in, and try to download a mod, it will show a login page, and after i log in, it will just download the mod without redirection, so i have to manually type address again in the address bar.

Re: [mod portal] Logging in redirects to main page

Posted: Tue Jan 23, 2018 2:23 pm
by HanziQ
staviq wrote:What is even more frustrating, if i forget to log in, and try to download a mod, it will show a login page, and after i log in, it will just download the mod without redirection, so i have to manually type address again in the address bar.
Well you wanted to download and it downloads. You can just press the back button and it will go to the previous page before you needed to log in.

Re: [mod portal] Logging in redirects to main page

Posted: Tue Jan 23, 2018 4:23 pm
by staviq
So do you confirm login cookies are supposed to have short timeouts ?

Re: [mod portal] Logging in redirects to main page

Posted: Tue Jan 23, 2018 6:27 pm
by orzelek
I have cookies enabled but only from page I'm on.
It keeps me logged in for short time but not over night.

And is cookie needed to go back to mod page after logging in or it's by design it always goes back to main page?

Re: [mod portal] Logging in redirects to main page

Posted: Wed Jan 24, 2018 11:57 am
by HanziQ
I added a "remember me" option that uses a longer expiration cookie. Redirect after login required a cookie, but doesn't anymore. I also changed the download button to redirect you to the mod page when you're not logged in (it will directly download if you're already logged in)

Re: [mod portal] Logging in redirects to main page

Posted: Wed Jan 24, 2018 7:19 pm
by orzelek
Redirect to home page still happens for me on latest version of Opera.
Remember me should help :)

Re: [mod portal] Logging in redirects to main page

Posted: Wed Jan 24, 2018 8:26 pm
by HanziQ
Redirect to home page happens when doing what exactly? I might have not caught all the places. When you click something that requires login, you should see the next parameter in the URL.

Re: [mod portal] Logging in redirects to main page

Posted: Wed Jan 24, 2018 11:16 pm
by orzelek
I log in, go to rso page and then log out - back on home page.
I go to first mod thats on page, press log in and login - back to home page. Login page has no additional parameters and I disabled all ad blockers. Also added factorio page to cookie exception - still same behavior.
I'm on latest Opera version and it sends following as identification:

Code: Select all

Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3239.132 Safari/537.36 OPR/50.0.2762.67
I'm also using option to send no track request to pages.

Re: [mod portal] Logging in redirects to main page

Posted: Thu Jan 25, 2018 12:13 am
by HanziQ
Oh I see, yeah, that's how it's supposed to work, but I'll change that tomorrow.

Re: [mod portal] Logging in redirects to main page

Posted: Thu Jan 25, 2018 9:51 am
by staviq
HanziQ wrote:I added a "remember me" option that uses a longer expiration cookie. Redirect after login required a cookie, but doesn't anymore. I also changed the download button to redirect you to the mod page when you're not logged in (it will directly download if you're already logged in)
Thanks !

Re: [mod portal] Logging in redirects to main page

Posted: Thu Jan 25, 2018 11:06 am
by HanziQ
Logging in should now redirect you back to the page you were on. Logout still goes to the main page.