Eric,
>Is there a way to set a private datasession within a prg without having a form ?
DEFINE CLASS myclass AS Session
(requires VFP6 SP3).
You can put the processing code into methods of "myclass", which will be run protected inside of a private datasession.