Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2011-05

TFPWebModule.ActionVar

5 messages · 3 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Michael Van Canneyt
to Lee Jenkins
Lee Jenkins wrote
What 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.

Lee Jenkins
to Michael Van Canneyt
Michael Van Canneyt wrote 14 lines
On Mon, 23 May 2011, Lee Jenkins wrote: > > What 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.

OK. Thank you.

Warm Regards, Lee
ABorka
to Lee Jenkins: What is it used for? Lee
Show quoted text 6 lines
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

Lee Jenkins
to ABorka
ABorka wrote 16 lines
> What is it used for? > 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.

Cool stuff.

Warm Regards, Lee