I hv configured spring security to authenticate and authorize users. It works fine.

The problem arises when a user logs in, then close the bowser without logout and again trying to login the application it throws an error.

java.lang.IllegalArgumentException: SessionIdentifierAware did not return a Session ID (org.springframework.security.ui.WebAuthentication Details@957e: RemoteIpAddress: 127.0.0.1; SessionId: null)

i dont know why it is happening.