|
From: Are W. <are...@ly...> - 2001-03-13 12:02:38
|
|hey Are,
|
|I'm still havin the same problem with phphelpdesk, ie keep goin around in
|circles on the client side, after logging in. I'm running IE5.5 and am not
|receiving any cookies by the server.
|
|I've tried updating cookie.inc.php and general.conf.php while running
|php-4.04-pl1/apache 1.3.17. I cant even us IE5 on the client. There are
no
|problems with using Netscape though. I can never receive a cookie from the
|server while running any version of IE.
You say you tried updating some files. Did you use Brian Razzaque's proposed
mod? (Which works perfectly btw. Thx Brian! :)
I'll list it here in case you didn't get it the first time: (line breaks
might be a bit freaky, adjust as necessary.)
Remove the quote marks from the code before running it..
To fix this, make the following modifications to includes/logout.inc.php:
logout.inc.php:
|<?php //Logout script created by Seek3r
| //Modified by Brian Razzaque (raz...@vm...)
|
| $time = mktime();
| $date = date("l, d-M-y H:i:s", ($time));
| setcookie("status", "", $date, $g_base_path, $g_domain);
| setcookie("user", "", $date, $g_base_path, $g_domain);
| setcookie("group", "", $date, $g_base_path, $g_domain);
| setcookie("authentication", "", $date, $g_base_path, $g_domain);
| setcookie("laston", "", $date, $g_base_path, $g_domain);
| setcookie("logout", "", $date, $g_base_path, $g_domain);
|
| unset($status);
| unset($user);
| unset($group);
| unset($authentication);
| unset($laston);
| unset($logout);
|
|?>
Just make sure that you use it with the code listed below by Jay Kramer.
Change the files includes/cookie.inc.php and config/general.conf.php to
read as follows:
cookie.inc.php:
|<?php // SET COOKIE INFO
|
|// cookie.inc.php -- modified by Jay Kramer (ja...@mo...)
|
|if (isset($authentication)) {
|$time = mktime()+g_cookietimeout;
|$date = date("l, d-M-y H:i:s", ($time)); // Make a IE5.01compatible
|date/time..
| setcookie("status", $status, $date, $g_base_path, $g_domain); // IE5.01
|is picky about the base path nad domain, if they are missing, there is a
|good chance the cookie will not get set..
| setcookie("user", $user, $date, $g_base_path, $g_domain);
|// setcookie("txtUsername", $txtUsername, $date, $g_base_path, $g_domain);
| setcookie("group", $group, $date, $g_base_path, $g_domain);
| setcookie("authentication", $authentication, $date, $g_base_path,
|$g_domain);
| setcookie("laston", $laston, $date, $g_base_path, $g_domain);
|}
|else {
|$time = mktime()+g_cookietimeout;
|$date = date("l, d-M-y H:i:s", ($time));
| setcookie("status", "Logged In", $date,$g_base_path, $g_domain);
| setcookie("user", $txtUsername, $date, $g_base_path, $g_domain);
|// setcookie("txtusername", $txtUsername, $date, $g_base_path, $g_domain);
| setcookie("group", $row[4], $date, $g_base_path, $g_domain);
| setcookie("authentication", "YES", $date, $g_base_path, $g_domain);
| setcookie("laston", $row[6], $date, $g_base_path, $g_domain);
|}
|
|?>
general.conf.php:
|<?php //general configuration
|
|$version = ".04.4"; //Version Number
|
|$g_title = "PHP Help Desk"; //Title of your
helpdesk
|$g_helpdesk_email = "web...@yo..."; //Email of your
helpdesk
|$g_mailservername = "mail.yourcompanys.smtpserver.com"; //SMTP Mail server
|$g_cookietimeout = "1200"; //Timeout for
cookies
|$g_refreshtime = "600"; //Refresh time for
viewall
|
|// If you are using http://someaddress.com/phphelpdesk, then you must set
the
|// base url to "http://someaddress.com/phphelpdesk/" Notice the '/' at the
end
|// you must put that in there. If you are using a virtual host such as
|// http://phphelpdesk.somecompany.com, then you can just leave it empty
with
|// the quotes touching "";
|$g_base_url = "http://someaddress.com/phphelpdesk/"; //base url
location
|// you HAVE to set your domain name here, with no HTTP:
|// or / at the end or anything...
|$g_domain = "someaddress.com";
|// this is the path from the last part of the $g_base_url
|// parameter. If there is no path, set this to "/"; NOTICE
|// THE BEGINNING AND ENDING /'s!!
|$g_base_path = "/phphelpdesk/";
|
|?>
Give this a try, and be sure to honor all the instructions as commented in
the code.
If all else fails, check your settings under "Tools -> Internet Options ->
Security" in IE 5.x, specifically looking for any weird cookie settings.
HTH,
Are Westby
--
"'Tis true, no man's an island. But if you tie a bunch
of dead guys together, they make a pretty good raft."
- Paul Tomblin
|