When using sessionState="StateServer" mode, .NET structs placed in $_SESSION are not persisted correctly. When get a null when restoring the session.
Steps to reproduce:
- Ensure Windows ASP.NET State Service is running
- In web.config set sessionState to "InProc"
- Load the attached test.php page.
- Refresh the page
- Observe as expected the var_dump shows us the RSAParameters struct has been persisted in the $_SESSION
- Now change web.config and set sessionState to "StateServer"
- Quit and restart your browser to clear the session
- Load test.php again
- Refresh the page
- Observe this time the $_SESSION contains a null value where our RSAParameters struct should be
Somewhere .NET structs are not being serialized/deserialized correctly. Tested with the latest Phalanger 3.0 2012-04-18 r2.