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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to