Guest User

Untitled

a guest
May 26th, 2018
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.74 KB | None | 0 0
  1. /**
  2. * Store the form values in the session namespace. Initialize if not set.
  3. * @param string $key : Key identifying information
  4. * @param array $values : assoc array of key/value pairs
  5. * @return void
  6. */
  7. public function storeFormValues($key,array $values) {
  8. $key = (string) $key;
  9. if (!isset($this->getSessionNamespace()->{$this->_livepdqSessionKey})) {
  10. $this->getSessionNamespace()->{$this->_livepdqSessionKey} = base64_encode(serialize(array()));
  11. }
  12.  
  13. $tempAr = unserialize(base64_decode($this->getSessionNamespace()->{$this->_livepdqSessionKey}));
  14. $tempAr[$key] = $values;
  15. $this->getSessionNamespace()->{$this->_livepdqSessionKey} = base64_encode(serialize($tempAr));
  16. }
Add Comment
Please, Sign In to add comment