Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cgi_cookie_set does not work #10

Open
GoogleCodeExporter opened this issue Nov 15, 2015 · 3 comments
Open

cgi_cookie_set does not work #10

GoogleCodeExporter opened this issue Nov 15, 2015 · 3 comments

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?
1. cgi_cookie_set(cgi, "cgi_cookie_test", "hellocgi", "/", "localhost", "Sat. 
06 Oct 2013 08:30:00", 1, 0)
2. http://localhost/cgi-bin/hellocs
3. Set-Cookie: cgi_cookie_test=hellocgi; path=/; expires=Sat. 06 Oct 2013 
08:30:00; domain=localhost Content-Type: text/html 
HTTP_COOKIE 
SESS29af1facda0a866a687d5055f2fade2c=EaXgcoenUyy9_AvsvrFvniUv6PjfS2n6aS3iunlvLu0
; pla3412=123456; pla3412_salt=lt260tdkeqc

What is the expected output? What do you see instead?
there is cgi_cookie_set in HTTP_COOKIE, but nope.

What version of the product are you using? On what operating system?
clearsilver-0.10.5
Linux 3.5.2-gentoo x86_64 Intel(R) Core(TM) i7-2630QM CPU @ 2.00GHz 
GenuineIntel GNU/Linux

Please provide any additional information below.

Original issue reported on code.google.com by [email protected] on 28 Sep 2012 at 4:43

@GoogleCodeExporter
Copy link
Author

I think I need more information, like the exact code involved.

Original comment by [email protected] on 28 Sep 2012 at 9:43

@GoogleCodeExporter
Copy link
Author

Thank Brandon, I attached the source code, please show me the magic :)

Original comment by [email protected] on 29 Sep 2012 at 1:24

Attachments:

@GoogleCodeExporter
Copy link
Author

I simply use printf("Set-Cookie:name=xzhai;\r\n");

Then it worked in my chrome browser ^_^

Original comment by [email protected] on 29 Sep 2012 at 3:00

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant