Question
I installed
SessionPlugin and CGI::Session module (v 4.00_08). The plugin seems to have installed fine since I see the correct values for the "Syntax Rules" on the
SessionPlugin page, and the logon script seems to work fine.
The web server logs also show the session id's being passed. However the user name still shows as
TWikiGuest. Further I don't see any /tmp/session files being generated. I changed the dir to data/.session as suggested in SessionPlugin.pm but that didn't help either. I also verified the existence of .../auto/CGI dir as:
# cd /usr/perl5/site_perl/5.8.4/sun4-solaris-64int/auto/CGI
# ls -a
# . .. Session
# cd Session
# ls -a
# . .. .packlist
A similar question was asked in
InstallingSessionPlugin. Seems like the workaround was to use cpan to download and install CGI:Session. However I am behind a SOCKS firewall and this doesn't seem to be an option (requires recompiling of perl against SOCKS lib which I would very much like to avoid).
So, the question then is: how do I fix the broken/misconfigured installation of CGI::Session? Or if something else needs to be done?
Environment
--
DevendraJaisinghani - 18 Aug 2005
Answer
If you answer a question - or someone answered one of your questions - please remember to edit the page and set the status to answered. The status selector is below the edit box.
Did you install
CPAN:CGI::Cookie
? I think that is required as well. You should be able to tell from data/warning.txt
--
CrawfordCurrie - 18 Aug 2005
Yes, I did. Unfortunately it didn't help. Besides data/warning.txt is an empty file.
--
DevendraJaisinghani - 18 Aug 2005
One thing I failed to include in my original post: I get the following error message on the bottom of the page being edited:
[Thu Aug 18 09:43:13 2005] view.pl: (in cleanup) Can't call method "store" on an undefined value at /usr/perl5/site_perl/5.8.4/CGI/Session.pm line 318 during global destruction.
--
DevendraJaisinghani - 18 Aug 2005
Hmmm. On the assumption that the SOCKS firewall is what is stopping CGI::Session from working, I think you are stuffed. I'm very interested to know if you find a solution to this, as CGI::Session is now a requirement for authentication with TWiki, as of
DakarRelease.
--
CrawfordCurrie - 22 Aug 2005
The firewall doesn't stop the CGI::Session from working, rather I can't get the CPAN module (as in
perl -MCPAN -e ...) to work with it. Hence I had to download and install it manually leading to perhaps an incorrect installation/configuration.
--
DevendraJaisinghani - 22 Aug 2005
I was able to solve the problem. Had to configure CPAN correctly (http and ftp proxy), and as a prerequisite install openssl (Apache), and Crypt::SSLeay module. After that used cpan to download and install CGI::Session. The previous manual installation was indeed broken. After this everything works just fine.
To summarize, I had to configure cpan.
--
DevendraJaisinghani - 26 Aug 2005
I'm getting the same problem and error message as
DevendraJaisinghani; however reinstalling CGI::Session did not help. I'm using Perl 5.8.3, CGI::Session 4.02 and
CairoRelease on
SuSE Enterprise Linux Server 9. Would appreciate any further help, as this is a show stopper for us.
--
MartinRothbaum - 21 Sep 2005
All I can suggest is that you check permissions, and make sure the webserver can write session files. You don't say if you are using any accelerators (mod_perl etc). Did you try restarting your webserver?
Failing all that, ask the developers of CGI::Session if they have seen anything like this before.
--
CrawfordCurrie - 24 Sep 2005
Had the similar symptom on solaris10. Can't call method "store" on an undefined value at /usr/perl5/site_perl/5.8.4/CGI/Session.pm line 192 during global destruction. Tried both to make CGI::Session manually and via CPAN. Tried also to run apache as root to see if there's problem with access rights. perl -MCPAN -e 'install CGI::Session::File' finally fixed it.
--
TWikiGuest - 26 Sep 2005
I had the same problem,
TWikiGuests solution worked for me.
--
JeffMcDonald - 28 Sep 2005
Thanks
TWikiGuest (whomever you may be ;-), installing CGI::Session::File worked for me too!
This really needs to be added to
SessionPlugin.
--
MartinRothbaum - 28 Sep 2005
I had the same problem with
CairoRelease on
SuSE and the
CGI::Session::File was my solution, too. Thanks
TWikiGuest!
Now, still more problems to solve in
ChrootingTWiki..
--
KeithHelfrich - 16 Nov 2005
I've solved one of my problems with the CGI::Session::File . However I have still the 500 Internal Server Error at
http://twiki.org/cgi-bin/view/Support/ErrorAtDotHtaccessAtLib
. Does anybody have had this issue before?
--
TWikiGuest - 10 Feb 2006