in reply to Re: Re: Problem using apache::session::store::mysql
in thread Problem using apache::session::store::mysql

The examples you should be following are the ones in Apache::Session and in eg/example.perl. Just take that and replace the tie() call with the appropriate parameters for Apache::Session::MySQL, which looks like what you have now.

You are missing something about the core structure of Apache::Session. It's a toolkit of storage, locking, and ID generation modules. The Apache::Session::MySQL module is just a pre-set configuration of those. It's little more than a config file. Look at the source and you'll see what I mean.

If you want to choose a specific ID generation algorithm, you can't use Apache::Session::MySQL because it already has one selected. You have to use Apache::Session::Flex instead. However, the MD5 ID generator which you are trying to use is already the default for Apache::Session::MySQL, so you don't need to do anything.

  • Comment on Re: Re: Re: Problem using apache::session::store::mysql

Replies are listed 'Best First'.
Re: Re: Re: Re: Problem using apache::session::store::mysql
by Anonymous Monk on May 25, 2004 at 17:41 UTC
    Thanks for Apache::Session overview. I wish the docs for the Apache::Session::* modules included better overviews.

    Since Apache::Session::MySQL takes care of id generation, I won't worry about the underlying method.

    I was mostly concerned with getting the apache::session/mysql interface to work before exploring the core of Apache::Session. I think I can manage from here. Thanks again!