Use global variables with Elementor page builder

I have created a short code with php and widget for sidebar to control the results of the short code I made and I need to use some global variables to send from the short code to the sidebar widget, everything working fine, But when I am using Elementor page builder global variables disappears!! However when using another page builder everything working well!! any help about that as I wish to use Elementor in my site! Cheers Mo