[eluser]ejangi[/eluser]
Hmmm... Not too sure... Just a couple of general questions to try a debug this:
- Are you running CI 1.6.x?
- Is this code inside a Controller method?
- You did load the session library right? (Based on the error this is a semi-redundant questions, but worth asking none-the-less).