Skip to content

Instantly share code, notes, and snippets.

@andevsoftware
Last active February 28, 2016 19:51
Show Gist options
  • Save andevsoftware/2ee44da9c8c3e3746f16 to your computer and use it in GitHub Desktop.
Save andevsoftware/2ee44da9c8c3e3746f16 to your computer and use it in GitHub Desktop.
Phalcon REST - Receive Session
<?php
/** @var \PhalconRest\Auth\Session $session */
$session = $this->authManager->getSession();
$response = [
'token' => $session->getToken(),
'expires' => $session->getExpirationTime()
];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment