On Mon, 13 Nov 2006 08:44:50 +0100, Florian Kristen wrote:
Hi Florian
> sub getUsername
> {
> my $self = shift;
> my $session = CGI::Session->load;
> return $session->param( 'login_name' );
> }
The question is: Which session are you loading?
The logic of your code is wrong. You must get a session ID from somewhere, and
use that to identify exactly which session to load. If you do not do that, then
each call to load() will load a new session, so any data you saved in an old
session will be ignored, because /all/ old sessions will be ignored.
I suggest you install CGI::Application::Demo (install FindBin::Real first, not
FindBin), and study the code.
--
Cheers
Ron Savage, [EMAIL PROTECTED] on 13/11/2006
http://savage.net.au/index.html
Let the record show: Microsoft is not an Australian company
---------------------------------------------------------------------
Web Archive: http://www.mail-archive.com/[email protected]/
http://marc.theaimsgroup.com/?l=cgiapp&r=1&w=2
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]