[ic] autoloading multiple scratch variables at login?

Jonathan Clark jonc@webmaint.com
Tue, 10 Apr 2001 23:46:50 +0100

Hi All,

I have a catalog where I would like to load two scratch variables from the
UserDB at user login.

I have tried:

UserDB         default    scratch    merchantid
UserDB         default    scratch    adminid

This loaded the adminid scratch var but not the merchantid.

I then read the docs and saw I had to use a hash for multiple entries, as
the second definition seemed to be overwriting the first, so I tried:

UserDB  default  <<EOF
       'scratch'        => 'merchantid',
       'scratch'	=> 'adminid'

which behaved in exactly the same way.

I am coming to the conclusion that I can only load one scratch variable
using this method. Is this correct?

I could use the autoload routine but this will be processed for every page
delivered, which seems unneccessary.

Any other suggestions?

I would be interested in an autoload type routine for just the login ... an
autologin routine. Is there such a thing.

Any help would be appreciated.