Author Topic: Pass variables/sessions to a php file  (Read 3787 times)

Offline Loguithat1955

  • Full Member
  • ***
  • Posts: 54
Pass variables/sessions to a php file
« 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.

Offline SKaero

  • Administrator
  • Hero Member
  • *****
  • Posts: 5,876
    • SKaero - Custom Roundcube development
Re: Pass variables/sessions to a php file
« Reply #1 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.