[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cgiapp] CA::Plugin::Authentication


On 10/10/05, Bill Stephenson <suppressed> wrote:
> I'm trying to get a handle on using "CA::Plugin::Authentication" and so
> far I seem to be doing ok, but I'd like to set the name of the cookie
> that "CA::Plugin::Authentication" uses to something other than
> CGISESSID. I've tried as many ways as I can think of, and I've reviewed
> the docs over and over, but I can't seem to find how to do this. Can
> anyone tell me how?

It looks like you are using the CAP::Session module, and have told
CAP::Authentication to use the Session module as the store.  In that
case, CAP::Authentication doesn't really have anything to do with
cookies.  It leaves all that up to the session plugin.

So check out the docs for  CAP::Session and see how to change the
cookie name there.  I'll save you some time:

CGI::Session->name('MYCOOKIENAME');

Put that call somewhere in your code, and CGI::Session wll look for
this cookie name instead of the default one.  CAP::Session will
automatically create the cookie using this name as well, so there
should be nothing else to do.  You should note that CGI::Session
implements this using a global variable, so if you are using mod_perl,
then all other applications using CGI::Session will use this new
cookie name as well (unless you explicitly call
CGI::Session->name('MYCOOKIENAME') at the start of each application). 
That is a little annoying, but alas that is the way CGI::Session
works.

Let us know if this doesn't work for you, or if you run into some
other problems.

Cheers,

Cees

---------------------------------------------------------------------
Web Archive:  http://www.mail-archive.com/suppressed/
              http://marc.theaimsgroup.com/?l=cgiapp&r=1&w=2
To unsubscribe, e-mail: suppressed
For additional commands, e-mail: suppressed


Mail converted by mhonarc 2.6.15
This archive provided courtesy of JSW4.NET, Internet Hosting Services for Small Business.