Web Server Cookies

Blitz3D Forums/Blitz3D Programming/Web Server Cookies

xtremegamr(Posted 2008) [#1]
OK, so I'm making a web server w\B3D. I've got everything done, except I don't know how to make the client's browser send and receive cookies. Does anyone know?


D4NM4N(Posted 2008) [#2]
javascript ?

Have no code to post but have done something like this using php before.


smilertoo(Posted 2008) [#3]
I thought cookies were prepared by the server, not the client.


D4NM4N(Posted 2008) [#4]
He is just talking about rw cookie access clientside i think :/


xtremegamr(Posted 2008) [#5]
What's an rw cookie?

I was talking about the kind of cookies that web servers use to see if you are logged in, track what sites you visit, etc.


D4NM4N(Posted 2008) [#6]
Correct, a cookie is prepared by the server and then sent to the browser and stored locally (as a text file) this usually remains as-is until the next visit and is used for whatever purpouse.

I thought u was trying to read and write a cookie clientside for some reason although i have not herd of the need for this before. Now reading again i guess you want to be able to send a cookie using B3D akin to PHPs setcookie() etc.

i have no idea how else you would do it other than from the client using js with data sent from the server (and back to the server) and im not even sure if its allowed or the safety issues involved :/