Roundcube Community Forum

 

Pass variables/sessions to a php file

Started by Loguithat1955, November 29, 2017, 02:57:30 AM

Previous topic - Next topic

Loguithat1955

I'm looking for a way to pass the Roundcube session to an external php file so that this PHP file can access certain variables set by Roundcube. Unfortunately, the PHP file doesn't seem to have access to the RC session. How can I pass variables to another PHP file without using JavaScript and without using GET/POST, so that Roundcube can use variables?

Personally, i think passing variables like the username via JavaScript or GET/Post methods are very insecure, so i didn't want to use this way.

SKaero

Without really being sure what your trying to do I would create a plugin that would provide an API of some sort for the data your looking for.