Hi!
I wonder how to read and set cookies in cgi using c or c++?
I looked it up in google but only what i've found was begginers cgi tutorial, no info about cookies. Please help.
Sorry for my English.
Hi!
I wonder how to read and set cookies in cgi using c or c++?
I looked it up in google but only what i've found was begginers cgi tutorial, no info about cookies. Please help.
Sorry for my English.
I would look into the CGIC library. It might make your life easier.
But I don't want to use any libary. I'd like to write one on my self and understand how it works.
Anyway thx for help (if it is an open source libary i try to look at it's source)
yeah, i've already checked ;>
i know how to set a cookie:
Set-Cookie: name=value; domain=.domain.com; expires=day, day-month-year hour:minute:second GMT; path=/\r\n
but still don't know how to retrive a cookie.... Anybody know?
I think you can get a basic Idea by reading the info from here.
After that if you know C well like file i/o and such you can create a simple libray or module to handle such that you can call into your code. If you read any other language as well. you might try looking at how it is done and implement it thus in C/C++. The only other one I know of in another language is this site.
Good luck.
Warning: Opinions subject to change without notice
The C Library Reference Guide
Understand the fundamentals
Then have some more fun