View Single Post
Old 06-26-2009, 10:59 AM   #10 (permalink)
Costin Trifan
Meeow!
 
Costin Trifan's Avatar
 
Join Date: 04-13-07
Location: Romania
Posts: 3,235
iTrader: 0 / 0%
Latest Blog:
None

Costin Trifan is a web professional of the highest orderCostin Trifan is a web professional of the highest orderCostin Trifan is a web professional of the highest orderCostin Trifan is a web professional of the highest orderCostin Trifan is a web professional of the highest orderCostin Trifan is a web professional of the highest orderCostin Trifan is a web professional of the highest orderCostin Trifan is a web professional of the highest orderCostin Trifan is a web professional of the highest orderCostin Trifan is a web professional of the highest orderCostin Trifan is a web professional of the highest order
@danf:
whether you want or not you would still have global variables in your code. This is not something you can avoid(unless you use only static classes)

by simple declaring $x = new ClassName() you just got a global variable $x.

and yes, I'm in control of all app.

Edit:
resetting the session state is not a good idea, because when I won't be able to re-enable a user's session. I store values in session that I cannot just re-enable..
__________________
...to be continued
Costin Trifan is offline   Reply With Quote