Hey there,
I had the same exact thing happen when I installed it on RH9 and
Fedora core 1. What I did to fix this was change the file
/helpdesk/includes/cookie.inc.php. The change was to modify every $date
to $time in every setcookie call. This is what mine looks like...
begin paste -->
<?php
// Modified by Andrew Walker (ajw...@ho...)
$time = mktime()+$g_cookietimeout;
$date = date("l, d-M-y H:i:s", ($time));
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);
}
?>
<-- end paste
Good Luck
Mark
-----Original Message-----
From: php...@li...
[mailto:php...@li...] On Behalf Of Guy
M. Grimes - UCSNET
Sent: Saturday, January 10, 2004 2:42 PM
To: php...@li...
Subject: [Phphelpdesk-help] Cookie issue after install.
Hi all,
I just installed the lastest verion of phphelpdesk. Deleted the old
DB
and imported the new just incase structure has changed. I'm on a Redhat
7.3
system running ensinm 3.5.20 newly installed. PHP is the lastest
version
and MySQL I think. Install location is var/www/ss/helpdesk Aliased as
/helpdesk/ in my virtual directory path. The last version was working
just
fine. Helpdesk connects to the database and displays jobs but due to a
cookie issue i can't navigate. Attempts to navigate returns me to login
screen even when I'm showed as logged in. Here are the messages I
receive.
Warning: setcookie() expects parameter 3 to be long, string given in
/home/virtual/site1/fst/var/www/ss/helpdesk/includes/cookie.inc.php on
line
8
Warning: setcookie() expects parameter 3 to be long, string given in
/home/virtual/site1/fst/var/www/ss/helpdesk/includes/cookie.inc.php on
line
9
Warning: setcookie() expects parameter 3 to be long, string given in
/home/virtual/site1/fst/var/www/ss/helpdesk/includes/cookie.inc.php on
line
10
Warning: setcookie() expects parameter 3 to be long, string given in
/home/virtual/site1/fst/var/www/ss/helpdesk/includes/cookie.inc.php on
line
11
Warning: setcookie() expects parameter 3 to be long, string given in
/home/virtual/site1/fst/var/www/ss/helpdesk/includes/cookie.inc.php on
line
12
Clicking on any link returns me to the login screen with these errors
and
shows me no longer logged in. Any ideas what I need to do to correct
this.
-------------------------------------------------------
This SF.net email is sponsored by: Perforce Software.
Perforce is the Fast Software Configuration Management System offering
advanced branching capabilities and atomic changes on 50+ platforms.
Free Eval! http://www.perforce.com/perforce/loadprog.html
_______________________________________________
Phphelpdesk-help mailing list
Php...@li...
https://lists.sourceforge.net/lists/listinfo/phphelpdesk-help
|