PHP Classes

Error Sessman MID()

Recommend this page to a friend!

      sessMan  >  All threads  >  Error Sessman MID()  >  (Un) Subscribe thread alerts  
Subject:Error Sessman MID()
Summary:I try to test but i got this error
Messages:2
Author:Pedro Vieira
Date:2009-10-21 20:05:36
Update:2009-10-25 04:23:17
 

  1. Error Sessman MID()   Reply   Report abuse  
Picture of Pedro Vieira Pedro Vieira - 2009-10-21 20:05:36
Fatal error: Call to undefined method sessMan::mid() in D:\webserver\www\SessMan\sessMan.demo.php on line 23


Anyone know how can y repair it?

reply to [email protected] please...

Cmps..

  2. Re: Error Sessman MID()   Reply   Report abuse  
Picture of Juan Angel Ringhetti Juan Angel Ringhetti - 2009-10-25 04:23:17 - In reply to message 1 from Pedro Vieira
Pedro, lets add this in sessMan.inc.php:


function mid() {
global $PHP_SELF;
$this->sessDbLink->db_qry("SELECT mid FROM seg_sessman WHERE sessid='".$this->getSessionID()."'", $PHP_SELF);
$user_id = $this->sessDbLink->get_data();

return ($user_id[0] - 1030507090) / 13579;
}


Juan