0

Does anyone know how I can save the variable oCompany from Sap b1 DiAPI in a cookie or in a session to reuse it?

$oCompany = new COM("SAPbobsCOM.Company")or die ("No connection");
Antonio Rodríguez
  • 976
  • 2
  • 11
  • 25
YesidG
  • 1
  • 1
  • Or also how could I save the connection result – YesidG Jul 29 '21 at 21:17
  • I can't answer for PHP, but my advice for someone using this with ASP.Net would be 'don't'. You probably don't want a lumbering great COM object hanging around in your session state, and the DIAPI can be unstable so could take out your web application. I'd put it in a back-end service with a queue between them. – Daz Jul 30 '21 at 09:51
  • Duplicate of this: https://stackoverflow.com/questions/66536889/save-ocompany-object-to-reusable-variable-sap-b1-di-api/69144063#69144063, which is also your question. – Antonio Rodríguez Sep 11 '21 at 14:52
  • Does this answer your question? [Save oCompany object to reusable variable, Sap b1 Di Api](https://stackoverflow.com/questions/66536889/save-ocompany-object-to-reusable-variable-sap-b1-di-api) – Antonio Rodríguez Sep 11 '21 at 14:52

0 Answers0