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

[cgiapp] Re: [OT] CGI::Session is good, but we can do better (a new project is born?)


On 2005-06-17, David Emery <suppressed> wrote:
>
> How about if you set up the session something vaguely like this:
>
> my %sess_table = (
> 		 tablename=>my_sessions_table,
> 		 session=>field_for_frozen_session_data,
> 		 timestamp=>timestamp_field,
> 		 email=>email_field,
> 		 param_2=>dbfield_2,
> 	       );
>
> my $session = new CGI::Session(
>    "driver:MySQL", 
>    undef, 
>    {Handle=>$dbh},
>    session_table =>\%table_params,   
> );
>
> The whole frozen session could go into the session field and any param
> that has its own field would also (instead?) get put there.

I agree that it could be possible to accomodate both mindsets using a
design similar to this.

    Mark

--
http://mark.stosberg.com/



---------------------------------------------------------------------
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.