For example, I am writing the backend admin pages to mangae the staff records for a company
company will have two locations, chicago and new york. and they will have two apartments, accounting department, and sales deparment in both locations.
I have two drop down menu
drop down menu 1
all locations
new york
chicago
drop down menu 2
all departments
accounting
sales
So the admin can select from these two drop down menus to list the staff in all locations & all departments, or all locations accounting department, or new york and all departments ...
He can then do the activities as edit, add, delete etc. But when he back from these activities to this index page, I want it remembers the previous select of the two drop down menus and back to the list of the two selected drop down menus.
I can use cookie, session to remember these selected items of the drop down menus.
But say if the admin leaves the staff management pages and goes to manage the other lists such as the products list etc. then when he back the staff list, I want admin go to the default set up instead of his previous selected list at the staff page.
Unless the browser closed, otherwise the cookie and session will stay. The admin will go back to the previous selected staff list instead of the default list.
The third choice is using the parameter to pass the selected item value of these two drop down menus around in all staff mangement pages. But it is a lot of extra works.
How would you handle it?