I want to set $_SESSION variable in my script what working with rest api of Sugar on one server.
But after reload sugar page, i see that $_SESSION i cleanup without my variable. How i can do that?
In your rest api call, are you sure that you are making the settings after starting the session?
I've just tried on 18.104.22.168 ENT. (I don't know your sugar version), using following code i was able to write something to session using rest api then i read/use it from sugar UI.
$_SESSION['tevfik'] = 'OK';
You must be missing something. My guess is you forgot to start session.
I hope it helps.
Developer Support Engineer
Hi Alex Mikhomor
PHP: $_SESSION - Manual
Thanks, but after refresh page - i dont see my variable. I think, that sugar clean all session_data after every load
oh, guys. Big thanks!
It my fault, what i'm not using
All working fine. Big thanks!
Retrieving data ...