cancel
Showing results for 
Search instead for 
Did you mean: 

problem with onCreate Method calling

Former Member
0 Kudos

Hi Experts,

I have created a stateful BSP application and I am using an Application class in it. When I execute the page for the first time in my system its executing the OnCreate method but again when I close the browser and execute this application again itu2019s not calling the onCreate method.

Please help on this .

Accepted Solutions (0)

Answers (2)

Answers (2)

GrahamRobbo
Active Contributor
0 Kudos

The session details are stored in a cookie - therefore simply closing and reopening the browser still passes the same cookie so the back-end thinks this is the same session. This means it does not rerun the OnCreate method.

If you want you can search and you will find many posts about logging out of a BSP application.

IMHO - I think you should avoid building stateful BSP applications. I stick with stateless.

Cheers

Graham Robbo

krishnendu_laha
Active Contributor
0 Kudos

Hello,

It means the instance of current application is store in buffer (why do not know )

i would suggest to use OnInitialzation rather that OnCreate methodfor your requirement...

Thanks