in reply to How to use Apache::Session?

Your code seems good to me, all I can suggest is to try adding a few more arguments to you tie, as below. The code below is in use and works fine for me. More information would help, such as whether sessions are being stored and just not retreived. Are there any errors in the log files? Can you access any part of the session hash in your handler_request method?

HTH
tie %{ $self }, 'Apache::Session::MySQL', $args{cid}, { DataSource => 'dbi:mysql:database', UserName => 'user', Password => 'pass', LockDataSource => 'dbi:mysql:database', LockUserName => 'user', LockPassword => 'pass', };

Replies are listed 'Best First'.
RE: RE: How to use Apache::Session?
by jaldhar (Vicar) on Aug 18, 2000 at 19:31 UTC
    Sorry for the late response but I got a chance to work on this a little and the problem turned out to be this line:
    if ( $@ =~ m#^Object does not exist in the data store# )
    Taking this out (and the block end of ocourse) fixed everything.