Hello Maha Anna
Thanks a lot for helping out.
I think i've found the cause of these problems. Well i am not sure if they are supposed to be like that. But in any case i get the desired result.
Both ATG Dynamo and jRun3.0 they tend to do session management besides being just plain simple dumb application servers

. So they have these settings that are defaulted such that you have situations where cookies die after a session.
For example in ATG Dynamo5.1 they have a component called sessionManager where there is a boolean field called usingCookies set to true. In JRun, a simillar field is also set to true etc.
So what i have done is make the required changes and my app seems to operate more or less ok. That is the cookies persist.
I might be wrong in my understanding of that problem. If it is so can you please comment. Otherwise i think that this thread can be closed

Thanks a zillion for your help and concern
Cheers
Vik