On Wed, 20 Aug 2003 18:28:43 -0700 (PDT)
Jeff Anderson <[EMAIL PROTECTED]> wrote:
Hi Jeff,
> Hello Enrico, thanks again for the tips ...
>
> I tried the "simple patch" to Apache::Template
> and had good success with the following:
>
> [%
> USE CGI;
> USE session = Session
> (CGI.cookie('SESSION_ID'),{
> Store => 'File'
> Generate => 'MD5'
> Lock => 'Null'
> Serialize => 'Storable'
> Directory => '/path/to/sessions'
> });
> SID = session.get('_session_id');
> request.header_out('Set-Cookie',
> "SESSION_ID=$SID; path=/");
> %]
>
Good :-)
> Having to patch the module leaves me just a
> little bit worried - but it works ... :) I wonder
> why the Apache::Request object isn't made
> available by Apache::Template?
I don't know, but if Andy read this thread I invite him to consider the
patchs... :-)
> Seems very handy to me.
Also for me, even if I prefer second patch that I posted because users can
control when to pass the $r object to templates.
by
- Enrico
_______________________________________________
templates mailing list
[EMAIL PROTECTED]
http://lists.template-toolkit.org/mailman/listinfo/templates