Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
+4 votes
2.8k views
in Q2A Core by
edited by
I am logged in into my page without www. If I add www. it shows that i am not logged in.

 
What could be the reason ???

Here on q2a one i slogged in to both "urls" automattically.

 

EDIT:

I know I can redirect non-www to www, but here on q2a.org I see me logged in under both roots,

that is what I want to achieve
Q2A version: 1.6.1

1 Answer

+4 votes
by
selected by
 
Best answer

I think u must look in qa-config.php files. 

If you wish, you can define QA_COOKIE_DOMAIN so that any cookies created by Q2A are assigned
to a specific domain name, instead of the full domain name of the request by default. This is
useful if you're running multiple Q2A sites on subdomains with a shared user base. 
 
define('QA_COOKIE_DOMAIN', '.example.com'); // be sure to keep the leading period
by
@adax
thanks for the tip, that was the reason...
...