I don't know whether there is any other way than what I have mentioned in the previous posts. But let me know if you find another way

I was using only session variables for such purposes earlier. It was not much difficult for me to do. Just lesser than 5 lines of code.