Skip to Main Content

APEX

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to "Purge" Session 0

Martin Giffy D'SouzaJan 14 2009 — edited Jan 15 2009
Hi,

We have some pages which use Session 0. I also have some application items which have corresponding application computations that get set "On New Instance". The computations are pulling values from a table.

When we first access a page with session 0 the application items are set by the computation and then they maintain that state. We run into an issue when I change the values in the back end and want them propagated to the application items. For clients who have "normal" sessions they can wait until their next login, however session 0 maintains the "old" values. Is their a way to purge or clear session 0 so all the session variables are reset etc?

Here's an example:

App Item: F_EMP_COUNT

App Comp: SQL - On New Instance

select count(*)
from emp


Application Access:

Px w. Session 0 is accessed for the first time:
- F_EMP_COUNT is set with 10 (the number of employees)
...
time passes
...

I now insert a new record in emp and realize that I need to update values in session 0's state

At this point I'd like to purge session 0 so that the next time it is accessed it's values are reset.

Thank you,

Martin

-----
[http://apex-smb.blogspot.com/]
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 12 2009
Added on Jan 14 2009
1 comment
282 views