Hi Fabian, is it possible to get access to the Cookie Data in Active Templates using > PHP? > > I want to use a PHP session throughout a SmartEdit Session, i.e. the user > should use the same session when browsing through the site in SmartEdit. > For that purpose i call a <?php session_start(); ?> in a PreExecute block > on every page. But with every page opened in SmartEdit, PHP opens a new > session instead of reusing the existing one. The problem is that the cookie > holding the PHPSESSID informaion is not being handed over to the code in > the PreExecute block. When calling var_dump($_COOKIES) the output is > array(0). The cookie is actually created and i can see that it is being > send to the OpenText-Server in the HTTP-Request Header, but OpenText does > not seem to hand this information over to the PreExecute code. > > Any ideas out there? >
If you just want to keep the same session during SmartEdit you could use the CMS session key as PHP session key as well. To do that, the PHP session_id accepts your own string to be used as session key. This would be a replacement of the session key that PHP stores in the cookie otherwise. I do not think that there is another way to get the PHP session working as you expect. Best, Hilmar -- You received this message because you are subscribed to the Google Groups "RedDot CMS Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/reddot-cms-users. For more options, visit https://groups.google.com/d/optout.
