This is what I mean from your question -
It is obvious that you will not get the session data in the other folder .
For making it work ,
define('QA_COOKIE_DOMAIN', 'example.com'); //or simply define('QA_COOKIE_DOMAIN', '/');
define('QA_COOKIE_DOMAIN', 'example.com');
//or simply
define('QA_COOKIE_DOMAIN', '/');
I have not tested this , but this is should work IMO.
Read more here - https://github.com/q2a/question2answer/blob/dev/qa-config-example.php#L88
Welcome to the Q&A site for Question2Answer.
If you have a question about Q2A, please ask here, in English.
To report a bug, please create a new issue on Github or ask a question here with the bug tag.
If you just want to try Q2A, please use the demo site.