Hi,
The script is external to Joomla and being called via a Fabrik form via the PHP plugin, this maybe why im not accessing the session data.
To be honest, im working on a POC for my site so this hack works fine for now but 100% agree its not the best \ most efficient way