How to store variable for next session ?

shark255shark255 Member Posts: 5
I use some code to send ERC20 tokens
such as

var omisegoContract = web3.eth.contract(omisegoAbi).at('0xd26114cd6EE289AccF82350c8d8487fedB8A0C07');

When I close my geth session, and start after sometime new one using "geth attach",
variable omisegoContract becomes undefined. How to store it permanently or I should define variable every time?
Sign In or Register to comment.