Hi all
I've got a bit of a problem getting data out of a cookie. I set the cookie like
this :
my %cookie_values = ( login => $uname,
email => $email,
name => $fullname
);
my $cookie = new CGI::Cookie( -name => 'techweb',
-value
=> \%cookie_values,
-expires
=> '+1h',
);
$self->header_props(-cookie => $cookie);
To check the cookie I'm doing this :
my $self = shift;
my $query = $self->query();
my $cookie = $query->cookie('techweb');
my $name = $cookie{'name'};
Basically even though I can see the cookie created on my PC, $cookie and
therefore $name are always undef.
BTW - I'm not sure if there's any bearing but I set the cookie in one run mode
and then do "return $self->run_mode_2()" to switch to the run mode which checks
the cookie. The only thing I can think of is that $self->query() is not updated
when I switch run modes this way ?
Can any body help me out ?
Cheers
Paul
*******************************************************************************
Important.
Confidentiality: This communication is intended for the above-named person and
may be confidential and/or legally privileged. Any opinions expressed in this
communication are not necessarily those of the company. If it has come to you
in error you must take no action based on it, nor must you copy or show it to
anyone; please delete/destroy and inform the sender immediately.
Monitoring/Viruses
Orange may monitor all incoming and outgoing emails in line with current
legislation. Although we have taken steps to ensure that this email and
attachments are free from any virus, we advise that in keeping with good
computing practice the recipient should ensure they are actually virus free.
Orange PCS Limited is a subsidiary of Orange SA and is registered in England No
2178917, with its address at St James Court, Great Park Road, Almondsbury Park,
Bradley Stoke, Bristol BS32 4QJ.
*******************************************************************************
---------------------------------------------------------------------
Web Archive: http://www.mail-archive.com/suppressed/
To unsubscribe, e-mail: suppressed
For additional commands, e-mail: suppressed
Mail converted by mhonarc 2.6.15
This archive provided courtesy of JSW4.NET, Internet Hosting Services for Small Business.