Advertisement
Guest User

Untitled

a guest
May 28th, 2017
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.75 KB | None | 0 0
  1. <?php
  2. class MY_Session extends CI_Session {
  3. private $ci;
  4. public function __construct() {
  5. parent::__construct();
  6. $this->sync_session();
  7. }
  8. public function is_logged_in() {
  9. $udata = $this->userdata('user');
  10. return !empty($udata);
  11. }
  12. //performs syncing b/w old MA
  13. //and CI version
  14. public function sync_session() {<?php
  15. class MY_Session extends CI_Session {
  16. private $ci;
  17. public function __construct() {
  18. parent::__construct();
  19. $this->sync_session();
  20. }
  21. public function is_logged_in() {
  22. $udata = $this->userdata('user');
  23. return !empty($udata);
  24. }
  25. //performs syncing b/w old MA
  26. //and CI version
  27. public function sync_session() {
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement