mpiscopo Posted April 5, 2004 Posted April 5, 2004 I am running MS3 (I believe) which doesn't support the tep_session_register() function anymore. I have replaced it with the newer $osC_Session->set() function but I'm getting an error on the top of my page when the page which loads it runs, the error is: Warning: Missing argument 2 for set() in /home/xxxxxxx/public_html/includes/classes/session.php on line 61 The line of code I changed was (old): tep_session_register('last_search_insert'); Which was changed to (new): $osC_Session->set('last_search_insert'); The function giving me the problem is: function set($variable, &$value) { if ($this->is_started == true) { $_SESSION[$variable] = $value; return true; } return false; } I don't know enough about coding to know how to resolve this second value error. Help would be greatly appriciated. Thanks!
mpiscopo Posted April 6, 2004 Author Posted April 6, 2004 Well, I'm not sure if this is correct but it seems to work (copying from other areas where it is used). I updated the line of code to: $osC_Session->set('last_search_insert', $_POST['last_search_insert']); If anyone knows if this is correct or not, I would appriciate hearing back. Thanks!
Recommended Posts
Archived
This topic is now archived and is closed to further replies.