Sharing session variables between templates

I stored the id of a meteor object in a session variable on a button click and wanted to evaluate some data based on the variable,on a different template. I’m getting a “Uncaught ReferenceError: myid is not defined” when I try to console log the variable on a different template helper. How can I share the variable I stored on the previous page to the new page.

PS:If you need any of my code to answer, feel free to ask. Please add code samples if you can on how to copy the session variable because I’m at my wits end to do it. Thanks! :smile:

I’m sorry, I solved it. Seems a newbie error. It seems, I’ve got to define the var again with Sesssion.get(“id”). Yay! Solved :smiley: