in reply to Re^2: session file umask
in thread session file umask
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: session file umask
by ksublondie (Friar) on Jan 13, 2009 at 21:31 UTC | |
|
Re^4: session file umask
by ksublondie (Friar) on Jan 14, 2009 at 18:54 UTC |