applications/dashboard/controllers/class.sessioncontroller.php
public function Stash() {
      $this->DeliveryType(DELIVERY_TYPE_BOOL);
      $this->DeliveryMethod(DELIVERY_METHOD_JSON);
      $Name = TrueStripSlashes(GetValue('Name', $_POST, ''));
      $Value = TrueStripSlashes(GetValue('Value', $_POST, ''));
      $Response = Gdn::Session()->Stash($Name, $Value);
      if ($Name != '' && $Value == '')
         $this->SetJson('Unstash', $Response);

      $this->Render();
   }
public function Stash() {
      $this->DeliveryType(DELIVERY_TYPE_BOOL);
      $this->DeliveryMethod(DELIVERY_METHOD_JSON);
      $Name = TrueStripSlashes(GetValue('Name', $_POST, ''));
      $Value = TrueStripSlashes(GetValue('Value', $_POST, ''));
      $Response = Gdn::Session()->Stash($Name, $Value);
      if ($Name != '' && $Value == '')
         $this->SetJson('Unstash', $Response);

      $this->Render();
   }
public function Stash ( ) { $ this -> DeliveryType ( DELIVERY_TYPE_BOOL ) ; $ this -> DeliveryMethod ( DELIVERY_METHOD_JSON ) ; $ Name = TrueStripSlashes ( GetValue ( 'Name' , $ _POST , '' ) ) ; $ Value = TrueStripSlashes ( GetValue ( 'Value' , $ _POST , '' ) ) ; $ Response = Gdn :: Session ( ) -> Stash ( $ Name , $ Value ) ; if ( $ Name != '' && $ Value == '' ) $ this -> SetJson ( 'Unstash' , $ Response ) ; $ this -> Render ( ) ; }
Stash a value in the user's session, or unstash it if no value was provided to stash.

Looks for Name and Value POST/GET variables to pass along to Gdn_Session.
Stash a value in the user s session or unstash it if no value was provided to stash .