-2

I have problem with session.

$kernel = new COM("NETOPENX50.Kernel") or die("Unable to instantiate Netopenx50.Kernel");

$_SESSION['kernel'] = $kernel;

its not working :( any idea ?

shubham715
  • 3,324
  • 1
  • 17
  • 27
fawer
  • 1
  • Possible duplicate of https://stackoverflow.com/questions/1442177/storing-objects-in-php-session – executable Oct 05 '18 at 10:44
  • You might want to read [how to ask a good question](https://stackoverflow.com/help/how-to-ask) and [how to create a minimal, complete and verifiable example](https://stackoverflow.com/help/mcve). *It's not working* never is a sufficient description of a problem. – Binarus Oct 05 '18 at 10:45

1 Answers1

1

From the manual:

Can I store a COM object in a session ?

No, you can't. COM instances are treated as resources and therefore they are only available in a single script's context.

Community
  • 1
  • 1
iainn
  • 16,826
  • 9
  • 33
  • 40