Subject:*
<
Name/Email:*
<
Message Icon:*
<
Select*
<
Message:*
<



Click the Preview to see the content in action.
Options:*
<
Confirmation Code*
<
6 + 6 = ?  
Input the result from the expression
Maximum attempts you can try: 10
*
<
     

Re: Remember Me and Public Suffixes
by Zap_English on 2017/1/27 11:02:46

ok, i changed it

and it seems to be working

Thanks
Re: Remember Me and Public Suffixes
by geekwright on 2017/1/25 14:09:13

Quote:

Zap_English wrote:
...
I have 4 sites and only this one doesn't work

rfu.in.ua


OK, I see the issue. Here is the cookie arriving at the browser:
le="color: #000000"><?php Set-Cookie: xoops_userxxx=xxx; expires=Thu, 25-Jan-2018 13:14:58 GMT; path=/; domain=.in.ua


.in.ua is a public suffix. It has the same meaning for setting cookies as a top level domain, i.e. .com, the same as .co.uk

For security, browsers will not accept cookies for domains that consist of only a public suffix. The cookie is being sent, but is rightfully ignored by the browser.

XOOPS 2.5 does not properly handle public suffixes. The code which attempts to determine the domain to use for cookies is obsolete, and produces incorrect results in cases like this.

For this case, I would recommend hacking the "XOOPS_COOKIE_DOMAIN" define,

In include/common.php, line 98 looks like this:
le="color: #000000"><?php define('XOOPS_COOKIE_DOMAIN', (strpos($domain = xoops_getBaseDomain(XOOPS_URL),'.')) === FALSE ? '' : '.' . $domain); //by arion92fr

Change that to read:
le="color: #000000"><?php define('XOOPS_COOKIE_DOMAIN', 'rfu.in.ua');


With that change, the remember me functionality should work.

This issue has been addressed in part in 2.6 with public suffix list awareness. Also, the XOOPS_COOKIE_DOMAIN should be configured at installation, rather than on the fly. I'll look and see what can be done to help in the 2.5 series.

Sorry I didn't pick up on that sooner. Hope this helps.
Re: Remember Me doesn
by geekwright on 2017/1/25 3:19:54

I'm trying to take a look, but so far the activation stage is stalled. I'll keep watching for it, and see what I can tell.

Quote:

Zap_English wrote:
It's a live site on a webhost

I have 4 sites and only this one doesn't work

rfu.in.ua
Re: Remember Me doesn
by geekwright on 2017/1/25 2:57:29

Quote:

Peekay wrote:
Looks like single quotes in in the forum post response title needs sanitising... doesn't it
just a little
Re: Remember Me doesn
by Peekay on 2017/1/24 23:18:39

Looks like single quotes in in the forum post response title needs sanitising... doesn't it

Who's Online

269 user(s) are online (165 user(s) are browsing Support Forums)


Members: 0


Guests: 269


more...

Donat-O-Meter

Stats
Goal: $15.00
Due Date: Jul 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $15.00
Make donations with PayPal!

Latest GitHub Commits