Is it possible to set session variables inside a class?I have to assign values for the session variables inside a class method which I want to use it in later case.I badly want to know this.Please help..
The point of a class is that it has it's own little scope going on. Thus it would be strange to be able to set a global variable from a class.
You'll have to import the session vars.