Hi Dragan,
>As for the "moving the mouse changes the datasession", I haven't observed that. When does that happen?
You can see it with a SET("DATASESSION") in the Watch window, (I always have the Watch window in the VFP frame). Launch a couple forms with private datasessions. Hover over one then the other, then click on the command window. When I do it I see a change from 2 to 3 and back to 1.
I didn't respond because of any problem with your method. The original poster, Doru, was interested in the Session class.
Charlie