Session slower then controller action

Last post 05-09-2008 3:04 AM by toinedeboer. 1 replies.

Sort Posts:

  • Session slower then controller action

    05-08-2008, 5:43 AM
    • Loading...
    • toinedeboer
    • Joined on 04-02-2008, 3:34 AM
    • Netherlands
    • Posts 56

    Hello ppl,

    Lately i noticed is got a strange problem with retrieving sessions saved with last controller action.

    It only happens with 1 page, where the controller action is very fast.

    I have a page where a user kan push an button to open a item to work with in the whole app.
    When a button is pushed the user gets redirected to the same controller but an other action (without View).
    The new action saves a attribute to a session and gets RedirectToAction to where the buttons are.
    When it gets back to the first page the page shows the session.

    Sometimes (not always) it looks like the controller was to fast or the session was to slow.
    This way no session info is retreived and nothing is displayed, when i hit F5 the session suddenly appears.
    (after 1 time showing the session the sessions gets deleted, so you dont get the message twice).

     Is this a known problem? or do i do something wrong with sessions?

     

  • Re: Session slower then controller action

    05-09-2008, 3:04 AM
    • Loading...
    • toinedeboer
    • Joined on 04-02-2008, 3:34 AM
    • Netherlands
    • Posts 56

    Hello ppl,

     I had an idea to try it with an delay when session is not retrieved.

    And with half a second of delay it works perfectly!

    I there a known isue of session retrieving from controller to controller ?

Page 1 of 1 (2 items)