php - MODx :: Get Session ID set by MODx to use in Module -


i have issue need pass session id module, "smf connector".

the problem stems fact reason smf forum (held in sub-folder) using different session set. combatted problem hard coding session id modx, of course failed next time loaded site day later.

i have tried using

global $modx;   $sid = $modx->documentobject[sid]; session_id($sid); session_start(); 

but no avail, infact stopping entire forum loading!

any ideas?

the reason modx session data limited index.php , scripts included there. suppose design.

from gather, smf script invoked seperate request. try adding following lines @ start of external php script:

// start modx session access session data require_once ($_server["document_root"] . '/manager/includes/config.inc.php'); startcmssession(); 

Comments

Popular posts from this blog

apache - Add omitted ? to URLs -

redirect - bbPress Forum - rewrite to wwww.mysite prohibits login -

php - How can I stop spam on my custom forum/blog? -