Re: [Cgi-session-user] Question
Brought to you by:
sherzodr
From: Peter S. <pt...@ms...> - 2008-11-20 14:55:57
|
> Date: Wed, 19 Nov 2008 12:49:57 -0500 > From: ma...@su... > To: cgi...@li... > Subject: Re: [Cgi-session-user] Question > > > if (scalar@row1 == "6") > > { @entry1 = ("@required" . "@row1") > > }; > > if (scalar@row2 == "6") > > { @entry2 = ("@required" . "@row2") > > }; > > if (scalar@row3 == "6") > > { @entry3 = ("@required" . "@row3") > > }; > > if (scalar@row4 == "6") > > { @entry4 = ("@required" . "@row4") > > }; > > if (scalar@row5 == "6") > > { @entry5 = ("@required" . "@row5") > > }; > > I doubt this part is related. > Figured just wanted to provide a little more info. > > #session handling > > $session = new CGI::Session(undef, undef, {Directory=>'../tmp/http_sessions'}) or die CGI::Session->errstr; > > > > print $session->header(); > > > > $session->save_param(["@entry1","@entry2","@entry3","@entry4","@entry5"]); > > - What version are you using? Try the latest if you aren't using it. DESCRIPTION Session management in CGI applications CPAN_USERID SHERZODR (Sherzod Ruzmetov <she...@cp...>) CPAN_VERSION 4.36 CPAN_FILE M/MA/MARKSTOS/CGI-Session-4.36.tar.gz UPLOAD_DATE 2008-09-13 DSLIP_STATUS RdpOp (released,developer,perl,object-oriented,Standard-Perl) MANPAGE CGI::Session - persistent session data in CGI applications INST_FILE /usr/local/lib/perl5/site_perl/5.10.0/CGI/Session.pm INST_VERSION 4.36 > - Check $session->errstr after every call, and possibly CGI::Session->errstr, too. I'm a newbie to perl so where should i put those calls? > - Just before you get the error: use Data::Dumper; warn Dumper ($session); > Is it empty, or something else? > - I would also recommend CGI::Session->new instead of "new CGI::Session" ... it shouldn't > make a difference but is considered a better practice. > This is the new code. #session handling $session = CGI::Session->new (undef, undef, {Directory=>'../tmp/http_sessions'}); print $session->header(); $session->save_param(["@entry1","@entry2","@entry3","@entry4","@entry5"]); warn Dumper ($session); > Mark Thanks! _________________________________________________________________ Get more done, have more fun, and stay more connected with Windows Mobile®. http://clk.atdmt.com/MRT/go/119642556/direct/01/ |