I've been having a TERRIBLE time trying to get Apache::Session to work. It is not as if I am having problems with only one storage subset; I can't get ANY of them to work.
First of all, I tried using Apache::Session::File. However, I recieved an error stating
TIEHASH not found in Apache::Session::File
Next, I tried Apache::Session::MySQL. After setting up the database exactly as the instructions state, I again tried to tie. Unfortunately, I recieved yet another error message; method get_lock_manager does not exist in object at /usr/lib/perl5/site_perl/5.6.0/Apache/Session.pm line 542 After examining the source, I discovered that the suspect line in question was indeed attempting to call a method named get_lock_manager, and that it did not exist.
Finally, I tried using Apache::Session::DBI. This seemed more promising, as the error I recieved was:
Upon examination of the code, the suspect line is:Permission denied at /usr/lib/perl5/site_perl/5.6.0/Apache/Session/Sys +VSemaphoreLocker.pm line 46.
In particular, the permissions argument: IPC_CREAT | S_IRWXU. First of all, I don't understand why database storage needs to use Semaphores, and secondly, why it doesn't work.$self->{sem} = new IPC::Semaphore($self->{sem_key}, $self->{nsems}, IP +C_CREAT | S_IRWXU) || die $!;
I've spent oodles of time trying to get Apache::Session to work, and I am having incredible urges to simply try to roll my own in order to get the functionality I want. I am using the sample scripts included with the distribution (dBs modifed to point to actual locations, of course), so I know I am not doing anything too outrageous. Does anyone have any clue of what I am doing wrong?
In reply to Problems with Apache::Session by jryan
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |