Console command and session

Ok, so I have a console script that it working fine, well almost.

It’s using a extension and that extension is using a lot of session stuff to keep track of config and keys. But I know that sessions won’t work in the console mode.

How to fix this? I have no clue at all :(

The error is btw: Caught exception: Property "CConsoleApplication.session" is not defined.

What can be an alternative for storing a value in a session?

If extension absolutely can not be modified to work with alternative storage then you have to emulate session.