So I think I have a fairly good understanding at this point of how to manage
this. My solution runs along the following lines
get up an asp file in /CMS/ASP/PlugIns/
This asp file iterates through all of the session variables it gets and builds
an xml file that looks like:
<vars>
<var name="LoginGuid"><[CDATA[val]]></var>
.
.
.
</vars>
If you are snagging all of the session variables that CMS sets you need that
CDATA because it puts everything and its mother (including the page html)
into the session. The calling php code does something like the following
function get_aspsession() {
$ch = curl_init();
$cookie = "";
foreach($_COOKIE as $key => $value) { $cookie = $key."=".$value.";"; }
curl_setopt($ch, CURLOPT_URL,
"http://localhost/cms/PlugIns/get_session.asp");
curl_setopt($ch, CURLOPT_HEADER, 0);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_COOKIE, $cookie);
$resp = curl_exec($ch);
curl_close($ch);
$xml = new SimpleXMLElement($resp);
$rv = array();
foreach($xml->var as $elem => $val) {
$rv[(string)$val[0]['name']] = trim((string)utf8_decode($val));
}
return $rv
}
hopefully you will forgive php ugliness as I am not a regular php programmer.
I recommend getting all of the sessions variables as there is at least one
useful variable LoginGuid that, so far as I know, is undocumented.
After you get those session variables its just a metter of building smart base
classes that build RQL statement fragments in a reusable fashion. I hope this
is helpful.
Fred
On Wed, Jun 03, 2009 at 09:13:56AM -0700, abdn_webteam wrote:
>
> I should also say that if you are successfully using PHP in your RQL
> plugins we would be very grateful for any knowledge you could share
> about how you're managing it - it's the final hurdle for us in terms
> of bringing RedDot development back into our sphere of comfort. ASP is
> all very well and good, but PHP is our language of choice.
> >
>
> !DSPAM:4a26a14b141862070011389!
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"RedDot CMS Users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/RedDot-CMS-Users?hl=en
-~----------~----~----~----~------~----~------~--~---