I'm trying to figure out: can I load custom class (defined in module) to be loaded before session starts and its contents processed by PHP (unserialized) - is where any legal way to do this? (without hacking Drupal core)
without it I get _PHP_Incomplete_Class if I store something of a custom type to $_SESSION variable.
I did a research:
- hook_boot is not called unless page is cached in NO DB mode otherwise it's called after session is loaded
- hook_init is called too late (always after session load)