Gossamer Forum
Home : Products : DBMan : Customization :

Multiple Databases - how to construct link to log off?

Quote Reply
Multiple Databases - how to construct link to log off?
Hi,

I'm using three databases, each pretty simple. They share db.cgi, auth.pl, the *.pass file, and *.log.

Each has its own *.cfg, *html.pl, and *.db.

Everything works great except the footer link to log out (return to login screen).

In my *.cfgs, the link to logout goes:
$auth_logoff = "$db_script_url";

In html.pl, the link says:
<A HREF="$db_script_link_url&logoff=1">Log Off</A>

But I always get an error which indicates that the script can't locate "default.cfg" -- but of course, there is no default.cfg as each of the databases uses its own with a special name (e.g., "offices.cfg).

How come it's looking for default.cfg? Is there something I need to do in db.cgi when I use multiple databases (this is my first multiple, although I've set up many 'regular' dbman installations).

I'm thinking of the part in db.cgi where it says:
# Load the form information and set the config file and userid.
local(%in) = &parse_form;
$in{'db'} ? ($db_setup = $in{'db'}) : ($db_setup = 'default');
$in{'uid'} ? ($db_uid = $in{'uid'}): ($db_uid = '');

Any help, please?

[This message has been edited by Glen Payne (edited November 11, 1999).]
Subject Author Views Date
Thread Multiple Databases - how to construct link to log off? Glen Payne 956 Nov 11, 1999, 5:42 AM
Post Re: Multiple Databases - how to construct link to log off?
Eliot 909 Nov 11, 1999, 6:59 AM