Hello There, Guest! Login Register


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Php memcache storage session to achieve the problem
#1
First session.save_handler = user, not memcache attention.

And then customize the class Session SessionHandlerInterface interface to achieve, create objects, session_set_save_handler registered, so every time such as:

$ _SESSION [ 'aaa'] = '123';

, Php will call through Session-> write (), the function of my own memcache to insert sess-prefix, session_id () for the suffix records, such as: key = sess-4fqrbhed9f3grq4p4ssbljg867.

At this time there is a very strange question, every time I follow $ _SESSION [ 'aaa'] = '123'; this, to memcache to take this session_id () corresponding data can be obtained, but delete $ _SESSION [ 'Aaa'] = '123'; memcache after the data was automatically deleted.
Reply


Forum Jump:


Users browsing this thread:
1 Guest(s)