Hi
I stored some simple_xml data into sessions variables
Example
$_SESSION['resultat'] = $parsed->toto;
After that, I get the following error message
Warning: session_start() [function.session-start]: Node no longer exists in C:\Program Files\Wamp\www\etc... on line 2
And I finally solved my problem doing this:
$_SESSION['resultat'] = (string) $parsed->toto;
But I still have 2 questions:
1. Why is there an issue mixing $_SESSION and simple_xml in my code?
- What is the use of the (string) before my variable? I mean, why does it solve the problem?[/B]
many thanks