Re: Authentication logic [was: Changing browser URL based on condition]

Michael Peters <[email protected]>
Newsgroups gmane.comp.apache.mod-perl
Message-ID <[email protected]>
On 07/14/2011 12:57 PM, Vincent Veyron wrote:

> This is what I first did, using Apache::Session. But I noticed the call
> to tie was very slow (response time around 70ms with it, 15ms without
> it), so I changed for Storable because filesystem reads were much
> faster.

I don't personally like Apache::Session because of the tie thing, but 
that's more an interface preference than anything else.

> Also, I did not find how to store a hash in the database without tie. I
> read it's possible to use Data::Dumper to write the data in a field and
> read it as Perl code. Would that be a way to do it?

The same way you're doing it now with Storable and a file. But instead 
of reading a file you read a database field.

-- 
Michael Peters
Plus Three, LP
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.