W
WA Support
Hello,
I am fairly new to programming in C, so please excuse my ignorance
here.
I am working on a Redhat 7.3 system with Apache 1.3.27 from the Redhat
distribution running. I am trying to write a routine that uses cgi
for a user to login to a website and then set a session cookie with
the username as the value of the cookie.
I have looked at CGIC (Boutell) and the CGI Library (Carson Harding),
to see how they set cookies in a browser, but they don't work in my
system. CGI Library works for Internet Explorer, but not Netscape.
CGIC doesn't work for either.
Both CGIC and CGI Library use the Set-Cookie: command, but I can not
get it to work.
I have also looked at CGI-LIB Library (Noel Aguilar), but these
routines are primarily for reading environment variables as far as I
can tell.
Could someone please give me a basic example of how to use the
Set-Cookie command, or show me another way to set cookies in a
browser, and then describe a way that I can go back and read the
cookie information back out of a client browser?
Thanks,
Murrah Boswell
I am fairly new to programming in C, so please excuse my ignorance
here.
I am working on a Redhat 7.3 system with Apache 1.3.27 from the Redhat
distribution running. I am trying to write a routine that uses cgi
for a user to login to a website and then set a session cookie with
the username as the value of the cookie.
I have looked at CGIC (Boutell) and the CGI Library (Carson Harding),
to see how they set cookies in a browser, but they don't work in my
system. CGI Library works for Internet Explorer, but not Netscape.
CGIC doesn't work for either.
Both CGIC and CGI Library use the Set-Cookie: command, but I can not
get it to work.
I have also looked at CGI-LIB Library (Noel Aguilar), but these
routines are primarily for reading environment variables as far as I
can tell.
Could someone please give me a basic example of how to use the
Set-Cookie command, or show me another way to set cookies in a
browser, and then describe a way that I can go back and read the
cookie information back out of a client browser?
Thanks,
Murrah Boswell