html - WWW and non-WWW URL. Two different sites -
i noticed today website creating has www or non-www problem. if go http: //www.taskconductor.com, different page same content http: //taskconductor.com.
if login (username: show@412customs.com, pass: tester) @ http: //www.taskconductor.com, try go http: //taskconductor.com (without www), make log in again. can see, when check cookies, can see there 2 sets of cookies. 1 http: //taskconductor.com , 1 http: //www.taskconductor.com.
i have seen problem, need make redirect? , if so, have index.php? prefer have of main content on index.php.
how can around this?
i able set php "setcookies" have specified domain.
my original setcookie string was: setcookie('ver_ame', $email, time()+2592000);
this allowed cookie set on whatever type of page on. if on http: //taskconductor.com set cookie that, , same if http: //www.taskconductor.com.
if setcookie string is: setcookie('ver_ame', $email, time()+2592000, "/", ".taskconductor.com");
the additional "/" shows cookie work on of directories under root. ".taskconductor.com" part showing domain use. fact has period before web name shows cookie work on subdomain or own domain.
thank responses , help! works now! thank you!
Comments
Post a Comment