Re: Saving css state in javascript and passing to php via form submit
| From: | Jürgen Wind | Date: | Sun, 01 Apr 2007 10:09:04 +0000 |
| Subject: | Re: Saving css state in javascript and passing to php via form submit | ||
| References: | 1 2 3 4 5 6 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-251883@lists.php.net to get a copy of this message | ||
Richard Lynch wrote:
>
> On Fri, March 30, 2007 12:13 pm, Juergen Wind wrote:
>> Tijnema ! wrote:
>>>
>>> You can use session within javascript too i believe.
>>>
>> no, sessions are completely serverside, but you can use js to pass
>> variables
>> using the query string when sending a xmlHttpRequest.
>
> [pedantic]
> Actually, the cookie for a session, if it's using cookies and not
> trans_sid, lives on the client, and can (I think) be affected in JS.
>
> One can even store up to 4K of session data *in* the cookie,
> sufficiently encrypted with a 2-way encryption with the private key
> server-side, and achieve server-neutrality in a server farm, if one is
> so inclined.
>
> So it's POSSIBLE for one to architect a system wherein the session all
> lives on the client.
>
> If you're willing to expose your entire inner workings of your
> application (e.g., it's Open Source anyway, or there's just nothing
> worth hiding in the first place) you wouldn't NEED to encrypt the
> data.
>
> None of this would be useful in the context of this particular thread.
> [/pedantic]
>
>
of course you are right, Richard, i was too lazy to elaborate the whole
issue,
i should have written "$_SESSION" ;)
--
View this message in context: http://www.nabble.com/Saving-css-state-in-javascript-and-passing-to-php-via-form-submit-tf3492648.html#a9776277
Sent from the PHP - General mailing list archive at Nabble.com.