Grid reload data fails

Hi,
i am working with grids based on oracle DB.

Within the grid SQL i use a Session variable for the content of the where clause.
In another window i change the content of this session variable
and use a sc_redir to come back to my grid.
In any case the new SQL in the grid is not executed, the content is still the same !
The reload button does not use the new SQL, the sc_select_where does not work…
The only way to update and execute the new sql is a JS button with Javascript :
window.location.href =window.location.href ;

Any suggestions ???
A feedback is highly appreciated.

By the way, with MariaDB it seems to work …