farukh_king Posted August 28, 2006 Share Posted August 28, 2006 Hi, Please tell me how i can fix this. I am getting this error.[b]ERROR:[/b]Warning: Wrong parameter count for session_set_save_handler() in /home/ephlox/public_html/accounts/include/misc/auth.inc.php on line 30[b]My Code:[/b]include($DIR."include/misc/session_functions.inc.php");session_set_save_handler("sess_mysql_open", "sess_mysql_read", "sess_mysql_write", "sess_mysql_destroy", "sess_mysql_gc");[b]session_functions.inc.php file, where i have written "sess_mysql_gc".[/b]function sess_mysql_gc($max_lifetime){ $old = time() - $max_lifetime; $result = mysql_query("DELETE FROM sessions WHERE UNIX_TIMESTAMP(t_stamp) < $old") or die(mysql_error()); return TRUE;}Your help will be higly appreciated thanks.Best Regards from,Farrukh Hussain Link to comment https://forums.phpfreaks.com/topic/18940-session_set_save_handler-problem/ Share on other sites More sharing options...
hitman6003 Posted August 28, 2006 Share Posted August 28, 2006 the function session_set_save_handler requires six parameters be passed to it. You are only passing five.http://www.php.net/session_set_save_handler Link to comment https://forums.phpfreaks.com/topic/18940-session_set_save_handler-problem/#findComment-81824 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.