Menu

#177 setcookie() Problem

open
nobody
None
5
2003-11-12
2003-11-12
Anonymous
No

I just installed version 0.6.16 on a Netware 6.5 server
running Apache 2.0 and MySQL version 4 ported to
netware.

When I login I see:

Warning: setcookie() expects parameter 3 to be long,
string given in
sys:/apache2/htdocs/helpdesk/includes/cookie.inc.php
on line 8

Warning: setcookie() expects parameter 3 to be long,
string given in
sys:/apache2/htdocs/helpdesk/includes/cookie.inc.php
on line 9

Warning: setcookie() expects parameter 3 to be long,
string given in
sys:/apache2/htdocs/helpdesk/includes/cookie.inc.php
on line 10

Warning: setcookie() expects parameter 3 to be long,
string given in
sys:/apache2/htdocs/helpdesk/includes/cookie.inc.php
on line 11

Warning: setcookie() expects parameter 3 to be long,
string given in
sys:/apache2/htdocs/helpdesk/includes/cookie.inc.php
on line 12

at the top of the admin screen and I can't really do any
functions.

Bill

Discussion

  • Nobody/Anonymous

    Logged In: NO

    I installed version 1.0.2 and it is working EXCEPT I can't
    delete requests.

     
  • Nobody/Anonymous

    Logged In: NO

    me too, RedHat 9

     
  • Nobody/Anonymous

    Logged In: NO

    Try to change for every function setcookie "$date" for "$time"

    ex:
    setcookie("status", $status, $date); --> setcookie("status",
    $status, $time);

    It works

     
  • michele bendinelli

    Logged In: YES
    user_id=950873

    Hi,
    I solved that problem by editing include/cookie.inc.php file
    and replacing
    $date = date("l, d-M-y H:i:s", ($time));
    with:
    $date =$time;

    mic.

     
  • Nobody/Anonymous

    Logged In: NO

    Replace Code in includes/cookie.inc.php with:
    <?php

    // Modified by Andrew Walker (ajwalker@home.com)
    $time = mktime()+$g_cookietimeout;

    if (isset($authentication)) {
    setcookie("status", $status, $time);
    setcookie("user", $user, $time);
    setcookie("group", $group, $time);
    setcookie("authentication", $authentication, $time);
    setcookie("laston", $laston, $time);
    }
    else {
    setcookie("status", "Logged In", $time);
    setcookie("user", $txtUsername, $time);
    setcookie("group", $row[4], $time);
    setcookie("authentication", "YES", $time);
    setcookie("laston", $row[6], $time);
    }

    ?>

     
  • Nobody/Anonymous

    Logged In: NO

    please some repeat!!!!!

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.