What is it used for?
Mailing lists / lazarus / 2011-05
TFPWebModule.ActionVar
5 messages · 3 people ·
- LLee Jenkins 3
- AABorka 1
- MMichael Van Canneyt 1
Reply by email Subscribe to this list Your subscription
Read-only archive. Use j and k to move between messages.
Lee Jenkins wroteWhat is it used for?
There are 2 ways to specify what web module/action should be executed: /path/to/cgi/mymodule/myaction
or
/path/to/cgi?modulevar=mymodule&actionvar=myaction
ActionVar determines the name of the query variable used to determine the action.
Michael.
Michael Van Canneyt wrote 14 lines
OK. Thank you.
What is it used for? Lee
Show quoted text 6 lines
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
ABorka wrote 16 lines
Cool stuff.
