in reply to How to use a new version of a module?

Hi friedo,

Thanks to your enlightenment! I tried it again and finally got it to work. The first time, I missed out one folder name. I had "/usr/home/mysite/site/Session/". It should have been ""/usr/home/mysite/site/CGI/Session/". I discovered it after I went back to try again with your assurance. I recopied the entire folder containing CGI::Session (and its related files) to the server.

I needed these lines in my scripts:

use lib '/usr/home/mysite/modules'; use site::CGI::Session;

I had to append "site::" to "CGI::Session". So now everything is working as expected, well, almost.

In a few places I added the line below:
$session->flush();

Otherwise, the session data doesn't get stored the way it does on my local computer.

To wfsp:

Yes, it is quite confusing. I spent a long time getting it to work. Most tutorials or forum help I read about give the syntax CGI::Session->load('driver:File', undef, {Directory=>"/sessions"}). But "load" wouldn't work with anything below CGI::Session 4x (which I read about somewhere but I can't find the source).