If a simple (working) demo would be useful, some time back I wrote a tutorial showing how to create a basic login page:
A Beginners Guide to CGI::Application
If you want file-based sessions, change this part of Login.pm:
CGI_SESSION_OPTIONS => [ "driver:mysql;serializer:Storable;id:md5", $self->query, {Handle => $self->dbh}, ],
To this:
CGI_SESSION_OPTIONS => [ "driver:File", $self->query, {Directory => "/tmp/sessions"}, ],
Then, assuming your web server runs as 'nobody', do this:
mkdir /tmp/sessions chown nobody:nobody /tmp/sessions cmod 755 /tmp/sessions
One final gotcha - make sure you've got all the same versions of all your modules being used on both servers. I try to install on my modules locally, then I can just tar up the modules directory and copy it to a new server, and be sure that I'm running the exact same (noncore) stuff everywhere.
In reply to Re^3: session file umask
by scorpio17
in thread session file umask
by ksublondie
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |