[Lazarus] TFPWebModule.ActionVar

ABorka fpc-devel at aborka.com
Mon May 23 22:19:14 CEST 2011


> What is it used for?
>
> --
> Warm Regards,
>
> Lee

There can be many uses for it, but not always necessary of course.
It is basically a way to pass the action name to fpweb as a parameter.

 From the simplest query parameter passing the action name, to the more 
difficult way of handling encrypted action names and parameters, etc.

I have a project using the latter for example. In that project all the 
URLs are looking something like:

https://www.somewebsite.com/mymodule/2C5DC93248CB271880F576D6F1D9?4384498578034E573B4796C1

No cookies used for anything at all for example, for security reasons. 
Everything is encoded in the action parameters. Both the action name and 
action parameters are encrypted, and encrypted differently every time.
To pre-process this kind of URL (basically decrypt) the action var is 
used (not directly from the URL) on the fly at runtime after decryption, 
to pass the called action name to fpweb.

AB





More information about the Lazarus mailing list