armint has asked for the wisdom of the Perl Monks concerning the following question:
Hi, I'd like to start learning and working with CGI::Session. My (local) installation of the module went fine, but as soon as I want to create a session, I get a '500 Internal Server Error'. Here is a simple test code:
#!/usr/bin/perl use lib "/www/docs/homes/theissen/scr/perlmods/perllib/"; use CGI; use CGI::Session; $q = new CGI; $session = new CGI::Session(undef,undef,{Directory=>"/www/docs/homes/t +heissen/scr/session/tmp"}); #$sid = $session->id(); print $q->header(), $q->start_html('Hi'), $q->h1('hi'), qq[session id: $sid\n], $q->end_html;
When I uncomment the line for session creation ('$session = new...'), the script works (of course, not doing anything with the session, and $sid not being initialized), i.e. the module itself is found. The directory in which the test script is in is cgi enabled (I run ordinary cgi scripts there). On installing cgi::session, I thought I better install it within the cgi enabled area, too.
When I run the script as such from the command line, I don't get any errors. I do get a session id ($sid, of course after uncommenting this line). So I'm pretty lost in figuring what is going wrong. Looks like the problem is not my cgi::session installation, but some server settings?
Any wisdom welcome
cheers
armin
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: get CGI::Session working
by naikonta (Curate) on Jun 26, 2007 at 15:03 UTC | |
|
Re: get CGI::Session working
by CountZero (Bishop) on Jun 26, 2007 at 15:29 UTC | |
|
Re: get CGI::Session working
by polettix (Vicar) on Jun 26, 2007 at 15:08 UTC | |
|
Re: get CGI::Session working
by Herkum (Parson) on Jun 26, 2007 at 14:58 UTC | |
|
Re: get CGI::Session working
by armint (Initiate) on Jun 27, 2007 at 13:00 UTC | |
by Herkum (Parson) on Jun 27, 2007 at 19:25 UTC | |
|
Re: get CGI::Session working
by armint (Initiate) on Jul 10, 2007 at 15:42 UTC |