Has anybody experienced this problem -- Identity cannot get the username from the cookie? By tracking into the code, the real cause is that at getCookie method FacesContext.getCurrentInstance() always returns null. The other session scope component with @Startup + @Create also has got the same problem. But the seam-space example works well for me. I compared the configuration between them, but cannot find how to fix it. Please help me.