as you can see in the picture, it produces a new page every time the EXAM ID changed. But how do I make me want to change it according to EXAM ID and SESSION values
You would need to do it in a script. Change your trigger to On script.
Then you can refer to our documentation on the subject.