I have been working with SESSIONS recently and I have a question... How can I get a session that has been set in an external application on the same server?
home/modx
home/ExtApp
I have my ExtApp setting up a session
session_start();
$_SESSION['test']='testing';
If I echo the session it appears to be working and is set in the ExtApp.
How can I grab this info in modx and use it? I want to create a plugin that will allow access to a page if the session is found, I got it working fine with cookies but I want the added security of using a session instead.
I tried the following for my plugin but it doesn’t appear to get the session from the ExtApp.
if ( $modx->documentIdentifier == 60){
echo $_SESSION['test'];
}
I understand it might not be as straight forward getting a session from another app so if anyone has some pointers on how to get this working with modx that would be great.