> -----Original Message-----
> From: Jeff Anderson [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, August 20, 2003 11:44 AM
> To: [EMAIL PROTECTED]
> Subject: [Templates] subclassing Template::Service::Apache for
> cookie/session support
> 
> 
> [This is an Apache::Template question]
> 
> I have deduced that
> Template::Service::Apache::params() is where i
> need to test for the existance of a session_id in
> the cookie, but i can't pass the created

I wrote an auth handler to deal with cookies and a simple
MySQL based session system...

If you are interested in an AuthDBIMySQL hack you're welcome
to it as an example. (Mostly, of what not to do, I'm sure. :)

The Auth Handler stuffs the session ID and one or two session
variables into the environment where CGI can get to it
easily. Cheap and lazy but it allows my auth to be the session
cookie and lets me work with CGI/mod_perl scripts as a bonus. 

Of course, it is Apache2.0 so you'd have to back port it to 
the older mod_perl methods...

Still, if I were you, I'd deal with the session stuff below
A::T. Write a login handler in mod_perl rather than trying
to hammer A::T into tweaking its headers.

--mark
P.S. Howdy [jeffa]! :)

_______________________________________________
templates mailing list
[EMAIL PROTECTED]
http://lists.template-toolkit.org/mailman/listinfo/templates

Reply via email to