Php 5.4 strict session collision detection

This patch implements

https://wiki.php.net/rfc/strict_sessions
CVE-2011-4718