I installed 11.0.6 and tried your code. It worked fine again. I ran the code in a process trigger that triggered on a successful login. Where are you running it? Is it in a process trigger, an extension or in a web-app? Please be as specific as you can so that I have a better chance of replicating the problem. If you'd like to include confidential information then you can open a help-desk ticket at enterprisedt.com/help. I'll reply to you from there.