Roundcube Community Forum

Third Party Contributions => API Based Plugins => Topic started by: Loguithat1955 on November 29, 2017, 02:57:30 AM

Title: Pass variables/sessions to a php file
Post by: Loguithat1955 on November 29, 2017, 02:57:30 AM
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.
Title: Re: Pass variables/sessions to a php file
Post by: SKaero on November 29, 2017, 05:51:55 PM
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.