Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
+2 votes
480 views
in Q2A Core by
When i trying echo $_SESSION page were empty. How i can know key of session to use on my site?
Q2A version: last

1 Answer

+1 vote
by

This is what I mean from your question - 

  1. You have installed qa in subdomain eg - http://example.com/qa
  2. And you are trying to access the same data from - http://example.com/somedir/

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', '/');

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

 

...