Solution to problem 1 is also simple:
# ---------------------------------------------------------------
# Retrieve the data from the session
#
return $_[0]->{data};
}
It's alternative of data() method. It just reads the data, so we can not overwrite session data by mistake.
Best regards,
Webmaster33
Paid Support from Webmaster33. Expert in Perl programming & Gossamer Threads applications. (click here for prices)
Webmaster33's products (upd.2004.09.26) | Private message | Contact me | Was my post helpful? Donate my help...
Code:
sub data_read { # ---------------------------------------------------------------
# Retrieve the data from the session
#
return $_[0]->{data};
}
It's alternative of data() method. It just reads the data, so we can not overwrite session data by mistake.
Best regards,
Webmaster33
Paid Support from Webmaster33. Expert in Perl programming & Gossamer Threads applications. (click here for prices)
Webmaster33's products (upd.2004.09.26) | Private message | Contact me | Was my post helpful? Donate my help...