SMF Development > Fixed or Bogus Bugs

[3734] Authentication cookies domain

<< < (2/2)

Orstio:
Subdomain independent and subdomain specific are opposites. :P
 
The setting in your SMF admin panel is subdomain independent, which means the cookie is not dependent on your subdomain.  In your case, you want your cookie to be dependent on the subdomain.  So, you need to turn the subdomain independent cookies off.

karlbenson:
Turning OFF subdomain independant cookies will resolve your issue.
However there is indeed a bug here.

Tested and confirmed in the latest svn.


--- Code: ---<?php

define('SMF', 1);
require('Sources/Subs-Auth.php');

global $boardurl;
$boardurl = 'http://website.co.uk/';

echo 'Subdomain Independant: ';
print_r(url_parts(1,1));
echo '<br />Subdomain Dependant: ';
print_r(url_parts(1,0));

?>

--- End code ---

Outputs
Subdomain Independant: Array ( [0] => .co.uk [1] => // )
Subdomain Dependant: Array ( [0] => website.co.uk [1] => // )

karlbenson:
tracked http://dev.simplemachines.org/mantis/view.php?id=3734

Orstio:
Is that only in 1.1, Karl?  As I said, I recall it being fixed in 2.0, but not 1.1 for a specific reason.  Just can't remember what the reason was.

karlbenson:
No thats what I tested in the 2.0 svn.

Navigation

[0] Message Index

[*] Previous page

Go to full version