Jump to content

farukh_king

New Members
  • Posts

    2
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

farukh_king's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. 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
  2. Hi,   I am getting following error. Warning: session_set_save_handler() [function.session-set-save-handler]: Argument 2 is not a valid callback in /home/ephlox/public_html/accounts/include/misc/auth.inc.php on line 30 Here is my PHP Code. http://pastebin.com/777362 Can you help me how i can fix this problem ? Please kindly write correct code here. Or upload correct code anywhere and give me the URL. Your help will be very appreciated thanks. Best Regards from, Farrukh Hussain
×
×
  • Create New...

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.