[Greasemonkey] grabbing session vars

Joe la Poutre jsixpack at gmail.com
Fri Mar 3 13:42:53 EST 2006


In addition to the following:

On 3/2/06, Josh Matthews <mrlachatte at gmail.com> wrote:
> If it's a variable in the URL, you're able to see it.  Otherwise, consider
> the fact that PHP is server-side, and Greasemonkey is client-side.
>
...using PHP implies that you have access to the original server (php)
pages - they are yours, aren't they?

If so, you could use just any technique or toolkit on the server side
to get persistence of variables. For instance, by using hidden form
fields and embedded JavaScript, as suggested above. Or using (PHP)
sessions to be more fancy.

No need for GM, so your visitors can just use any browser for the
desired effect.

Normally you would use GM only to alter existing web pages after the
fact, without access to the server side. And for mixing and mashing of
different services at the client side of course...

Cheers,

Joe.


More information about the Greasemonkey mailing list