I have a method in my controller which is called through ajax. It populates a global variable within this controller .
Is there any way I can access this global variable already populated by the first method if I call another ajax method on the same page and controller ?
The end goal: This variable would be a large list of data that is randomly generated. So I want in the first method to generate. The person sees the data and if it gives the ok it returns to controller with that same data and does another action with them.