Forums Register Login

How can JSP read JavaScript cookies.

+Pie Number of slices to send: Send
Is there a way for JSP to read JavaScript cookies? If no, what is an alternative way to exchange information from Javascript to JSP. Thanks.
+Pie Number of slices to send: Send
Cookies, while available from JavaScript, are not a JavaScript-specific mechansism. Cookies are available on the server-side via the getCookies() method of the request isntance.

But why use cookies? If you are going to be making a request back to the server, why not just use good old request params?
+Pie Number of slices to send: Send
tried the getcokies() method it works, thanks.
Think of how stupid the average person is. And how half of them are stupider than that. But who reads this tiny ad?
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 1148 times.
Similar Threads
cookies on Server
JSP and Javascript Cookies
Method to Retreive Cookies from Client
Difference Between Javascript Cookie and serverside Cookie?
How to check if cookie is enabled or not
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 29, 2024 04:18:20.