View Single Post
Old 10-06-2009, 01:06 PM   #12 (permalink)
svdelle
The Wanderer
 
Join Date: Oct 2009
Posts: 5
Thanks: 0
svdelle is on a distinguished road
Default Singleton and PHP?

Yeah, and why all this talk about singleton in PHP when ALL variables containing a singleton is destroyed on new request.

It seems we have this great pattern that is absolutely useless when it comes to singleton and sessions.

How do I store a language variable in a session using a singleton without it being destroyed on every request.

I'd like to avoid having to add a lang=n to all links througout a whole website, but store a language value i session using a singleton?
svdelle is offline  
Reply With Quote