OrangeSessionTestController.php 947 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. <?php
  2. /**
  3. * OrangeSessionTestController
  4. *
  5. * PHP 5
  6. *
  7. * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
  8. * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
  9. *
  10. * Licensed under The MIT License
  11. * Redistributions of files must retain the above copyright notice.
  12. *
  13. * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
  14. * @link http://cakephp.org CakePHP(tm) Project
  15. * @since 3.0.0
  16. * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
  17. */
  18. namespace TestApp\Controller;
  19. use Cake\Controller\Controller;
  20. /**
  21. * OrangeSessionTestController class
  22. *
  23. */
  24. class OrangeSessionTestController extends Controller {
  25. /**
  26. * uses property
  27. *
  28. * @var array
  29. */
  30. public $uses = array();
  31. /**
  32. * session_id method
  33. *
  34. * @return void
  35. */
  36. public function session_id() {
  37. $this->response->body($this->Session->id());
  38. }
  39. }