Hi Guys,
As a possibly extra security feature, I thought I'd try to implement the
following...:
sub cgiapp_prerun
{
my $self = shift;
my $form_parameters = $self->query();
my ($user_id, $session) = get_ID($form_parameters);
# If they are not logged in already, and they are not trying to.
# Send them to the login screen so they have to......
unless (($form_parameters->param('seen_login_page')) ||
($session->param("logged_in")))
{
$self->prerun_mode('mode_1');
}
}
But since I called CGI::Session (with get_ID($form_parameters)) , it creates
a new user id..
along with the session file etc..
Then it directs to the login runmode, which hasn't been passed the user ID..
so it creates another one..
Is there a way to pass the ID from cgiapp_prerun to the login runmode??? (I
mean appart from a cookie.)
Its not terribly important, the script forces the login anyway, its just me
being paranoid..
Any tips'd be great.
kindest regards
Franki
---------------------------------------------------------------------
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.