Skip Menu |

This queue is for tickets about the CGI-Session CPAN distribution.

Report information
The Basics
Id: 88697
Status: new
Priority: 0/
Queue: CGI-Session

People
Owner: Nobody in particular
Requestors: amingholizad [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: param
Date: Mon, 16 Sep 2013 00:10:13 +0430
To: bug-CGI-Session [...] rt.cpan.org
From: amin gholizad <amingholizad [...] gmail.com>
Hello. I have this code: use CGI ( "-utf8" ); Show quoted text
> use CGI::Session; > my $q = new CGI; > my $s = CGI::Session->new(undef, $q, {Directory=>'../tmp/sessions'}) || > die CGI::Session->errstr; > $s->expire('+10m'); > my $name = "Amin"; > $s->param('name',$name); > print $s->header( > -charset => 'utf-8' > ),"\n";
every thing is fine but the error is shown in the browser: Can't call method "param" on unblessed reference at Show quoted text
> ..../lib/perl5/CGI/Session.pm line 361.
I have used session in another script fine. all the same but there was not any "param" method I used save_param and load_param. But in this script I have to save a variable out of query string so I used param and the error. I also tried: Show quoted text
> $s->param(-name=>'name',-value=>$name);
but the same error. I use perl 5.8.8 CGI-Session-4.48 on http://stevie.heliohost.org it is linux x86_64 and apache 2.2.16 Amin.Gholiza d