I have an application with several controllers and views. As a user navigates through various vies and controller i need to record the navigation history for back tracking purpose. for this purpose i have decided to use a stack for pushing and popping the navigation history as i move from controller to controller. the problem is after trying a lot of stuff like
static class with static properties,
and also the
but each time i move from controller to controller these properties are nullified and a new instance is created in each case.(for going from controller to controller I am using
What i need is an stack that is available throughout the application and i can use it from different controllers to get or set the navigation info.