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

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


From: Ron Savage <suppressed> on Date: Fri, 17 Jun 2005 15:44:25 +1000

> Hi Mark
> 
> Just curious - would we be free to name the table and all the columns any way we want?

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.

Sound reasonable, possible?

Dave

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