Menu

IPM v0.9 fix for recurrent login cookie error

Ap Muthu
2002-05-02
2002-05-02
  • Ap Muthu

    Ap Muthu - 2002-05-02

    Warning: setcookie() expects parameter 3 to be long, string
    given in c:\program files\easyphp\www\ipm\functions.php on
    line 2607

    When we login as an admin we get the above error and it
    expects us to login while entering / re-entering each link
    on the same login.

    As the third argument for the setcookie function needs a long instead of the string given, we feed it a zero.

    The fix for this problem is in Line 2607 of functions.php
    repl
            setcookie("uid", $user[id], "", "", "", $SSL);
    with
            setcookie("uid", $user[id], "0", "", "", $SSL);

     
    • Paolo Marsi

      Paolo Marsi - 2002-05-02

      I gor the same message after upgrading from 4.1.2 to PHP 4.2.0

      PM

       

Log in to post a comment.

MongoDB Logo MongoDB