I’m trying to add some data into data dict in a session. Why?
I want that my app use a specific value selected by the user in all the pages without passing it through get method. the reason for this is i have some pages that show information based in the value selected by the user.
Example: you have two kids and when you select one of them, in all the app the results are related with the kid selected. passing this value in every page it is not a good idea.
something like frappe.session.kid_selected .
Any idea to do what i want even if it is in another way.
value = frappe.cache().get_value(key)
# or pass a generator method
# do something
value = frappe.cache().get_value(key, generator_func)