Simple Machines Community Forum

SMF Support => SMF 2.1.x Support => Topic started by: stopguardias24h on July 30, 2022, 07:20:45 AM

Title: Constant login request in the administration
Post by: stopguardias24h on July 30, 2022, 07:20:45 AM
Hello everyone.

I am a new user of SMF, and I just did my first installation.
All good, but when I start managing the forum, every step I take asks me to enter the password.
I can't move from page to page in admin without being constantly prompted for my password.
Is there a way to indicate that you only need to log in once every so often?

Thanks.
Title: Re: Constant login request in the administration
Post by: Doug Heffernan on July 30, 2022, 07:22:51 AM
Quote from: stopguardias24h on July 30, 2022, 07:20:45 AMHello everyone.

I am a new user of SMF, and I just did my first installation.
All good, but when I start managing the forum, every step I take asks me to enter the password.
I can't move from page to page in admin without being constantly prompted for my password.
Is there a way to indicate that you only need to log in once every so often?

Thanks.

It should not ask for confirmation on every page load. We are talking about the Admin Panel, right?
Title: Re: Constant login request in the administration
Post by: stopguardias24h on July 30, 2022, 07:38:16 AM
Right, just in Admin.
Title: Re: Constant login request in the administration
Post by: Aleksi "Lex" Kilpinen on July 30, 2022, 08:46:22 AM
It should only ask it once for getting in to the admin panel, if it asks it for every page separately then perhaps there's something wrong with your cookie settings?
Title: Re: Constant login request in the administration
Post by: stopguardias24h on July 30, 2022, 10:02:40 AM
Well, I just log in each step.

Thank you!!
Title: Re: Constant login request in the administration
Post by: Arantor on July 30, 2022, 10:07:46 AM
Link to the site, to go digging further?

The admin extra step should be approximately once per hour under normal circumstances.
Title: Re: Constant login request in the administration
Post by: stopguardias24h on July 30, 2022, 11:22:38 AM
Quote from: Arantor on July 30, 2022, 10:07:46 AMLink to the site, to go digging further?

The admin extra step should be approximately once per hour under normal circumstances.

https://stopguardias24h.com/foro_sanitarios/index.php (https://stopguardias24h.com/foro_sanitarios/index.php)
Title: Re: Constant login request in the administration
Post by: Arantor on July 30, 2022, 12:14:18 PM
Hmmm. Putting the forum in a subfolder of WordPress doesn't usually end particularly well because WordPress forgets that people use it with other things.

Also, you didn't happen to use www in the name when you logged in, did you?
Title: Re: Constant login request in the administration
Post by: stopguardias24h on July 30, 2022, 01:19:09 PM
Quote from: Arantor on July 30, 2022, 12:14:18 PMHmmm. Putting the forum in a subfolder of WordPress doesn't usually end particularly well because WordPress forgets that people use it with other things.

Also, you didn't happen to use www in the name when you logged in, did you?

True, I'm using it in a subfolder. Maybe its better idea put it in a sub-domain?

And well, yes, my hosting redirects to the address without www.

Thank you.
Title: Re: Constant login request in the administration
Post by: Arantor on July 30, 2022, 01:46:01 PM
Quote from: stopguardias24h on July 30, 2022, 01:19:09 PMmy hosting redirects to the address without www

It doesn't actually redirect though. I was quite happily able to produce session cookies for both with and without www, which occurred to me as potentially related...

In the session cookies area, you could maybe set the cookies to be subdomain independent. But I think there's something else wrong with your site given your other thread as well.

What mods do you have installed?
Title: Re: Constant login request in the administration
Post by: stopguardias24h on July 30, 2022, 02:01:42 PM
Quote from: Arantor on July 30, 2022, 01:46:01 PM
Quote from: stopguardias24h on July 30, 2022, 01:19:09 PMmy hosting redirects to the address without www

It doesn't actually redirect though. I was quite happily able to produce session cookies for both with and without www, which occurred to me as potentially related...

In the session cookies area, you could maybe set the cookies to be subdomain independent. But I think there's something else wrong with your site given your other thread as well.

What mods do you have installed?

I just installed it. All the mods that I tried are for captcha, but they are unactivated. Always same result: when I try to accept the anti-spam options with recaptcha menu, its the only part where the re-log fails as related in my other post. Maybe I shoud unifie both questions :-S

Thank you.
Title: Re: Constant login request in the administration
Post by: stopguardias24h on July 30, 2022, 08:06:54 PM
Quote from: Arantor on July 30, 2022, 01:46:01 PM
Quote from: stopguardias24h on July 30, 2022, 01:19:09 PMmy hosting redirects to the address without www

It doesn't actually redirect though. I was quite happily able to produce session cookies for both with and without www, which occurred to me as potentially related...

In the session cookies area, you could maybe set the cookies to be subdomain independent. But I think there's something else wrong with your site given your other thread as well.

What mods do you have installed?

Well, I have more information about the error. When I try to change something like the order of my forums, it comes again to put my password, and the reply is:

Session verification failed. Please try logging out and back in again, and then try again.

Same happen when I change anti-spam settings (where the capcha can be configured). The response when I put my password when I need to change something is:

Session verification failed. Please try logging out and back in again, and then try again.

Can it help?
Title: Re: Constant login request in the administration
Post by: Arantor on July 30, 2022, 08:17:08 PM
Not really, this was entirely predictable given the rest of your symptoms.

What I don't get is why your sessions are not saving the way they should. I still think the first thing to do is to move it out from under the WordPress so it's not in a subfolder *and* that when it is a subdomain, cPanel hasn't made it as a folder under the WordPress anyway and see if that helps.
Title: Re: Constant login request in the administration
Post by: stopguardias24h on July 31, 2022, 06:36:45 AM
Quote from: Arantor on July 30, 2022, 08:17:08 PMNot really, this was entirely predictable given the rest of your symptoms.

What I don't get is why your sessions are not saving the way they should. I still think the first thing to do is to move it out from under the WordPress so it's not in a subfolder *and* that when it is a subdomain, cPanel hasn't made it as a folder under the WordPress anyway and see if that helps.

You were right. I put all the forum in a subdomain pointing to a completly differnt directory in my server, and all the errors are fixed.

Thank you!!!