Apex 4.2 - Page sentry error
When I login to my workspace (vikasa) on apex.oracle.com and run app 24317, I get an error
Error Error processing session sentry function.
ORA-02291: integrity constraint (APEX_040200.WWV_FLOW_DATA_SESSION_FK) violated - parent key not found
When I start a new browser session and run it directly http://apex.oracle.com/pls/apex/f?p=24317:500 without logging in to the App Builder, there is no error. In the same browser session, when I login to the Builder, again I can't reproduce the error.
Not sure what is going on. The Authentication scheme uses a custom page sentry function as follows http://pastie.org/5103748