Jump to content


This topic is now archived and is closed to further replies.


session_set_save_handler() problem

Recommended Posts

  Please tell me how i can fix this. I am getting this error.

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]

[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

Share this post

Link to post
Share on other sites
the function session_set_save_handler requires six parameters be passed to it.  You are only passing five.


Share this post

Link to post
Share on other sites


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.