Bluehost.com Web Hosting $6.95

cookie question

This is a discussion on cookie question within the Apache Web Server forums, part of the Web Server and Related Forums category; I'm playing around with cookies mostly as a learning experience. I cant seem to get an html page to ...


Go Back   Usenet Forums > Web Server and Related Forums > Apache Web Server

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 12-20-2005
Eric
 
Posts: n/a
Default cookie question

I'm playing around with cookies mostly as a learning experience.
I cant seem to get an html page to set a cookie. I'm a bit confused
about headers , which to send first etc.
Here's my strategy
....
<body>
<!--#exec-cgi="/cgi-bin/setcookie.cgi" -->
</body>

The cgi just writes
"Set-Cookie: hello=its_me" to stdout
My question is:
is this correct?

int main(void) {
printf("Set-Cookie: hello=its_me\n");
printf("Content-type: text/html\n\n");
return 0;
}

Because i dont see a cookie show up on disk on the client side.
And there are no errors in my apache 2.2 logs (linux based system)
And also, my client is IE6 on windows and its not blocking cookies.
I watch the cookies dir under Documents and settings and the cookie
never shows up, although i can see cookies arrive from other places
like google.
Can someone straighten me out here?
Thanks
Eric

 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 02:47 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0