Search found 3280 matches

by MarkDHamill
Wed Jul 15, 2020 12:09 am
Forum: [3.3.x] Support Forum
Topic: Cookies being set to the wrong time?
Replies: 20
Views: 579

Re: Cookies being set to the wrong time?

Okay, I missed that this configuration variable had interface where it could be changed. In any event, what I observed was that when it was set to 0, the cookie expiration date did not change to 365 days. The cookie always expired at the current time.
by MarkDHamill
Tue Jul 14, 2020 11:55 pm
Forum: [3.3.x] Support Forum
Topic: Cookies being set to the wrong time?
Replies: 20
Views: 579

Re: Cookies being set to the wrong time?

That value is set to 1, so presumably they would expire normally in one day. Instead, they expired immediately.
by MarkDHamill
Tue Jul 14, 2020 11:43 pm
Forum: [3.3.x] Support Forum
Topic: Cookies being set to the wrong time?
Replies: 20
Views: 579

Re: Cookies being set to the wrong time?

An update on this. After much debugging I determined that line 797 of session.php: $cookie_expire = $this->time_now + (($config['max_autologin_time']) ? 86400 * (int) $config['max_autologin_time'] : 31536000); won't add 31536000 to $this->time_now , which is the correct Unix timestamp. $config['max_...
by MarkDHamill
Sun Jul 12, 2020 12:22 pm
Forum: Extensions in Development
Topic: [CDB] Selective mass emails 1.0.10
Replies: 35
Views: 4635

Re: [3.3][RC] Selective mass emails 1.0.10

This extension is now approved. Further conversation should be done here.
by MarkDHamill
Sat Jul 11, 2020 11:56 pm
Forum: [3.3.x] Support Forum
Topic: Cookies being set to the wrong time?
Replies: 20
Views: 579

Re: Cookies being set to the wrong time?

Yes, this looks like a Vivaldi bug. In Chrome Developer tools inside Vivaldi it shows the correct cookie values. So sorry for the red herring. The general issue remains though but it doesn't appear to be cookie related. It's more likely an issue with a session expected to be in the sessions table no...
by MarkDHamill
Sat Jul 11, 2020 11:49 pm
Forum: [3.3.x] Support Forum
Topic: Cookies being set to the wrong time?
Replies: 20
Views: 579

Re: Cookies being set to the wrong time?

Here's what I see:
Screen Shot 2020-07-11 at 7.46.09 PM.png
I think this is a browser quirk. I am using Vivaldi which may be sanitizing cookies. In Firefox, using the Storage Inspector, the values look right.
by MarkDHamill
Sat Jul 11, 2020 11:31 pm
Forum: [3.3.x] Support Forum
Topic: Cookies being set to the wrong time?
Replies: 20
Views: 579

Re: Cookies being set to the wrong time?

Note: these 1970 cookies exist here on phpbb.com's forums too.
by MarkDHamill
Sat Jul 11, 2020 11:22 pm
Forum: [3.3.x] Support Forum
Topic: Cookies being set to the wrong time?
Replies: 20
Views: 579

Re: Cookies being set to the wrong time?

I've tested cookies on four websites including localhost, and the _u , _k and _sid cookies all show expiration dates in 1970. It shouldn't be this value because $this->time is set to time() but it is. Later is session.php in the session_kill() function starting on line 926 there is some other set co...
by MarkDHamill
Fri Jul 10, 2020 9:09 pm
Forum: [3.3.x] Support Forum
Topic: Cookies being set to the wrong time?
Replies: 20
Views: 579

Re: Cookies being set to the wrong time?

"A phpBB ACP login which fails with a permissions error after successfully finishing the ACP login" does happen to be a symptom several "form invalid" customers also saw. Because if phpBB can't match you back to the same session again on your next visit, that can give you a "no permissions" on the ...
by MarkDHamill
Fri Jul 10, 2020 8:51 pm
Forum: [3.3.x] Support Forum
Topic: Cookies being set to the wrong time?
Replies: 20
Views: 579

Re: Cookies being set to the wrong time?

So if no max_autologin_time is set (value is 0), the cookie will expire in a year. But the cookie shows an expiration date in 1970. The Unix timestamp for 1970-01-19 14:37 is 1625820. Then it seems that in /phpbb/session.php , $this->time evaluates to 0 which it shouldn't because it is set to time()...
by MarkDHamill
Fri Jul 10, 2020 7:19 pm
Forum: [3.3.x] Support Forum
Topic: Cookies being set to the wrong time?
Replies: 20
Views: 579

Re: Cookies being set to the wrong time?

So I looked to see what cookies are created on localhost, and it's the same thing. Seems strange that the _u , _k and _sid cookies would all be set for a date in 1970. Any idea why this would be? I'm guessing it's to make these session cookies? Screen Shot 2020-07-10 at 3.15.45 PM.png This at least ...
by MarkDHamill
Thu Jul 09, 2020 11:04 pm
Forum: [3.3.x] Support Forum
Topic: Cookies being set to the wrong time?
Replies: 20
Views: 579

Re: Cookies being set to the wrong time?

It may be the cookie is a red herring. If would think if a cookie expires then it should not trigger a 401 error going into the ACP. Perhaps it has something to do with session management. Unfortunately, I can't seem to find a PHP error log for more clues, and there's nothing in phpBB's error log.
by MarkDHamill
Thu Jul 09, 2020 9:57 pm
Forum: [3.3.x] Support Forum
Topic: Cookies being set to the wrong time?
Replies: 20
Views: 579

Cookies being set to the wrong time?

This board appears to be setting cookies awry. Tell me if I'm right. After logging in I see most of the cookies have an expiration date in 1970. Screen Shot 2020-07-09 at 5.48.05 PM.png The effect seems to be that you are logged in but your cookie almost immediately expires. I sniffed the phpBB code...
by MarkDHamill
Wed Jul 08, 2020 2:21 pm
Forum: Extensions in Development
Topic: [3.3][RC] Filter by country - version 1.0.16
Replies: 352
Views: 29778

[3.3][RC] Filter by country - version 1.0.16 released

Version 1.0.16 includes the bug fixes found: The template issue on the settings page that forced the test IP addresses field to the right of the new seconds setting has been fixed. Logic that was incorrectly categorizing access from countries where the country was disallowed but the user was already...
by MarkDHamill
Tue Jul 07, 2020 4:44 pm
Forum: Extensions in Development
Topic: [3.3][RC] Filter by country - version 1.0.16
Replies: 352
Views: 29778

Re: [3.3][RC] Filter by country - version 1.0.15

Not sure what Singapore Sling has to do with this extension. A VPN is assigned to a country. So unless you set "Allow registered users to login from restricted countries" to Yes, VPNs can't circumvent the extension's logic. I'm a member of a board that has my country blocked at the time i was not a...

Go to advanced search