Skip to Content
author's profile photo Former Member
Former Member

problem with onCreate Method calling

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 .

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • Posted on Oct 11, 2010 at 07:26 PM

    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

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Oct 11, 2010 at 09:43 PM

    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

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.