ProfileSessionLoader.inc 405 B

123456789101112131415161718192021
  1. <?php
  2. class ProfileSessionLoader implements IBusinessLogic
  3. {
  4. public static function getInstance()
  5. {
  6. return new ProfileSessionLoader();
  7. }
  8. public function process()
  9. {
  10. //TODO: where to get the user data?
  11. // check for uid in url
  12. //check for existing session id
  13. //check for cookie
  14. $_SESSION['fname'] = 'Joe';
  15. $_SESSION['lname'] = 'Bloggs';
  16. $_SESSION['email'] = 'joe@college.edu';
  17. }
  18. }