Passing json through queryString

Hello,

I’m working on a project where I won’t be using sessions and only GET HTTP requests. This querystring data has to be easily accessible for js, and as far as I know POST and sessions are not the best friends of javascript. Am I right or am I correct?

So I decided to pass dynamic data from page to page using the queryString. More specifically, that data is a json string which I encode/decode. It works fine.

Yet, I was wondering: what do you think of tis approach? Am I missing something? How would you reduce the size of the data passed through the querystring (how would you encode it?)

Regards.

-jj.

I think I’m missing something. Why do you want to access query string data with JS? Query strings are used to send data to the server, not to send data to the client.

For the sake of theory (and sheer pleasure of imagination), let’s imagine that in this case query string is meant for js. :slight_smile: