Simplify MemcacheStore at the cost of ease-of-use.
Simplify MemcacheStore at the cost of ease-of-use.

If MemcacheStore is used to store objects which are changed, then they
should be added to MemcacheStore again after they have changed.

This change also fixes a potential problem when both the MemcacheStore class
and the Session class uses register_shutdown_function. Earlier one could get
a situation where MemcacheStore-objects's shutdown-function was run first,
followed by the Session-object's. In that case the changes to the Session-
object wouldn't be saved.


git-svn-id: a243b28a2a52d65555a829a95c8c333076d39ae1@572 44740490-163a-0410-bde0-09ae8108e29a

maytechnet/simplesamlphp,dialogik/simplesamlphp,girgen/simplesamlphp,shoaibali/simplesamlphp,dialogik/simplesamlphp,BrettMerrick/simplesamlphp,grnet/simplesamlphp,grnet/simplesamlphp,jschlyter/simplesamlphp,dnmvisser/simplesamlphp,simplesamlphp/simplesamlphp,sylvainmed/simplesamlphp,girgen/simplesamlphp,ghalse/simplesamlphp,sitya/simplesamlphp,sylvainmed/simplesamlphp,BrettMerrick/simplesamlphp,StudentLifeMarketingAndDesign/simplesamlphp,dnmvisser/simplesamlphp,madmatt/simplesamlphp,jschlyter/simplesamlphp,gtkrug/simplesamlphp,sitya/simplesamlphp,gtkrug/simplesamlphp,jschlyter/simplesamlphp,madmatt/simplesamlphp,cwaldbieser/simplesamlphp,sitya/simplesamlphp,maytechnet/simplesamlphp,BrettMerrick/simplesamlphp,dnmvisser/simplesamlphp,StudentLifeMarketingAndDesign/simplesamlphp,Kunstmaan/simplesamlphp,Kunstmaan/simplesamlphp,dialogik/simplesamlphp,BrettMerrick/simplesamlphp,ghalse/simplesamlphp,girgen/simplesamlphp,maytechnet/simplesamlphp,jschlyter/simplesamlphp,grnet/simplesamlphp,shoaibali/simplesamlphp,simplesamlphp/simplesamlphp,ghalse/simplesamlphp,dzuelke/simplesamlphp,Kunstmaan/simplesamlphp,simplesamlphp/simplesamlphp,dzuelke/simplesamlphp,Kunstmaan/simplesamlphp,StudentLifeMarketingAndDesign/simplesamlphp,shoaibali/simplesamlphp,dialogik/simplesamlphp,cwaldbieser/simplesamlphp,ghalse/simplesamlphp,dzuelke/simplesamlphp,StudentLifeMarketingAndDesign/simplesamlphp,maytechnet/simplesamlphp,girgen/simplesamlphp,madmatt/simplesamlphp,dialogik/simplesamlphp,sylvainmed/simplesamlphp,madmatt/simplesamlphp,shoaibali/simplesamlphp,sylvainmed/simplesamlphp,gtkrug/simplesamlphp,dzuelke/simplesamlphp,cwaldbieser/simplesamlphp,cwaldbieser/simplesamlphp,gtkrug/simplesamlphp,sitya/simplesamlphp,simplesamlphp/simplesamlphp,grnet/simplesamlphp,jschlyter/simplesamlphp,dnmvisser/simplesamlphp,girgen/simplesamlphp