Gossamer Forum
Home : Products : Others : Fileman :

Fileman and IE6

Quote Reply
Fileman and IE6
The installation of fileman went fine, but after I login, I get:

"Set-Cookie: username=triehll Set-Cookie: password=tr8Fp2w5yw1PY Date: Tue, 15 Jan 2002 10:22:26 GMT Content-type: text/html" displayed on the screen, and nothing else..

It seems that IE6 doesn't know what to do with text before the <html> tag...

Anyone else have this problem? Does that info absolutely need to be at the top of each page, or can I delete it? If I can delete it, which file do I delete it from?
Quote Reply
Re: [Swissair] Fileman and IE6 In reply to
Hi,

Are you using Fileman single version? If so, make sure your cookie browser's turned on.

Cheers,

TheStone.

B.

Last edited by:

TheStone: Jan 15, 2002, 9:42 AM
Quote Reply
Re: [TheStone] Fileman and IE6 In reply to
I'm using the single-user version of fileman.

I'm at school in France (I don't speak French, and the menus in IE are in French.. hah!), but I think I have cookies enables (unless they have some weird securtiy features enqbled on campus computers). Could you take a look at it:

http://riehl.ca/cgi-bin/fileman.cgi

I get "Content-type: text/html" printed as the first line in the source.

The online demo from this site works fine for me.

My webhost is running win2k.

Any help is greatly appreciated,

-Trevor Riehl
Quote Reply
Re: [Swissair] Fileman and IE6 In reply to
Hi,

Did you change fileman.cgi? if so, make sure it hasn't print "content-type:text/html\n\n"; command.
Anyway, you can change the scripts a litte bit:

my %header_args;
# Check to see if we need to authenticate.
if ($fm->{cfg}->{username} and $fm->{cfg}->{password}) {
...
if () {
....
}
# Logged in ok, save username, password into cookie
elsif ($fm->{cgi}->{login}) {
%header_args = (-cookie => [
$fm->{in}->cookie ( -name => 'username', -value => $username, -expires => ''),
$fm->{in}->cookie ( -name => 'password', -value => $encrypted, -expires => ''),
]);
}
}
print $fm->{in}->header(%header_args);

$fm->process();

That should work.

TheStone.

B.

Last edited by:

TheStone: Jan 22, 2002, 11:28 AM