Fix WordPress login hook

This fixes the WordPress login hook. Previously, after login into WordPress, accessing a protected area let to an error message stating "Full authentication required". A simple refresh would suffice, because after that the session was correctly initialized. This patch eliminates the need to refresh.

Reference: http://symfony.com/doc/2.4/cookbook/testing/simulating_authentication.html