You are viewing a plain text version of this content. The canonical link for it is here.
Posted to embperl@perl.apache.org by Sergey Merkuriev <se...@maks.net> on 2001/06/17 17:01:21 UTC
$udat hash troubles - no keep values
After reload page or change page $udat{user} no keep - run code after if
(! defined $udat{user}){.
But file for session create with parameter "user" and it value.
Please help what need do for coorect this error.
I'm do this in "general.epl":
[- ....
if ((defined $fdat{user}) and (defined $fdat{passwd})){
if(! is_valid_user($fdat{'user'}, $fdat{'passwd'})){
Execute({inputfile => "ext.htm"});
Execute({inputfile => "error.epl", param => [$err]});
close_base;
}else{
$udat{user} = $fdat{'user'};
}
}
else{
if (! defined $udat{user}){
close_base;
$req_rec->header_out("Location" => "index.epl");
$req_rec->status(301);
}
}
.....
-]
[$if (defined($udat{user})) $]
... html code ...
<form action="/stat/general.epl" method="POST">
<input type="submit" name="check" value="Update page">
</form>
... html code ...
[$endif$]
---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org
Re: $udat hash troubles - no keep values
Posted by Gerald Richter <ri...@ecos.de>.
> After reload page or change page $udat{user} no keep - run code after if
> (! defined $udat{user}){.
> But file for session create with parameter "user" and it value.
> Please help what need do for coorect this error.
> I'm do this in "general.epl":
>
How have you configured the session management in httpd.conf ?
Do get the message "Session management enabled" at server startup ? If not
something with your configuration is wrong
Gerald
-------------------------------------------------------------
Gerald Richter ecos electronic communication services gmbh
Internetconnect * Webserver/-design/-datenbanken * Consulting
Post: Tulpenstrasse 5 D-55276 Dienheim b. Mainz
E-Mail: richter@ecos.de Voice: +49 6133 925131
WWW: http://www.ecos.de Fax: +49 6133 925152
-------------------------------------------------------------
---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org