Solved! Go to Solution.
Is your application running anonymously? eg when you navigate to it, is the user required to login? When running in the dev environment you generally have to login. If the app is running without a user having to login, then no session would be generated. So the user will be null.
Is your application running anonymously? eg when you navigate to it, is the user required to login? When running in the dev environment you generally have to login. If the app is running without a user having to login, then no session would be generated. So the user will be null.