User-1720943447 posted
thanks for the prompt reply darrell..
Just to try i created a class and a function in that class which returns session data as string.
But when i tried to call it from userController same null exception came.
Not recommended means is there any security issue with it?