Hi,
I working on an application which needs different behaviors based on different groups in OID.
So, I am setting global variable - which have Scope set to 'application' & SessionStateProtection set to 'Restricted-May not be set from browser'
While most of this works perfectly well, there one specific page navigation path, where it fails. There is a weird behavior observed.
To describe the Navigation in short:
Page B is called with Navigation menu from the initial page.
We have a button on Page B, which calls a Pop-up. Say page- Popup.
If I navigate to Page B & back, through the Navigation Menu, I do not see any issues.
If I
navigate to Page B
the Popup Page. I then
close the popup in any possible way.
navigate back from Page B
I then see the Global values disappearing.
Further weird thing observed:
I was attempting to trace where the variables are lost. So I am doing the javascript console.log -- logging.
Navigating to Page B- I see the variables intact in the page-load process.
Navigating to PopUp page- I do not see the values.
On the click of Navigation, back to Initial page I again see the global variable value. On the menu Items, I have set a class variable. By the JQuery selector, ('onclick') I am doing the console.log for the variables.
When I am back to the Initial page, all the global variables do not have the initial value (no value)
Any idea what could be happening or what needs to be checked?
Our current Apex version is 21.2.3
Thank you,
Prakash