javascript: persistent vars, a only-local cookie?

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
davips
Forum Newbie
Posts: 3
Joined: Thu Dec 09, 2004 6:31 am
Contact:

javascript: persistent vars, a only-local cookie?

Post by davips »

Hello,
is there any cookie configuration that don't allow the server to see
the data?
Or is there any workaround that holds javascript variables without sending them across the web? :?
I've used iframes for that, but it's not simple and flexibe enough.

Thanks a lot in advance! :P
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Post by Chris Corbyn »

Not too sure what you're trying to acheive here. Why would you not like the server to see the data? Do you need to remember the variable across multiple sessions or just during that particular session in the browser?
davips
Forum Newbie
Posts: 3
Joined: Thu Dec 09, 2004 6:31 am
Contact:

security purposes

Post by davips »

I crypt the userpassword+serverrandomnumber with md5(javascript implementation) and send the result to the server.
At the first time it's ok, but i need to keep the userpassword in the client
side during the user's navigation and do the test every time without asking to the user the password again.
Actually, the session is: md5(randomnumber + md5(password))

randomnumber -> is received from the server every access
md5(password) -> is necessary to javascript every access

thanks
davips
Forum Newbie
Posts: 3
Joined: Thu Dec 09, 2004 6:31 am
Contact:

why don't send to the server

Post by davips »

it's not good send the password or the md5(password) to the server for security reasons. if it stays in client side, only the session var will be public
Post Reply