Welcome to MobyThreads.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in
All support for the MobyThreads Threaded phpBB MOD can now be found on welsolutions at this forum

How to enable cookie in the server

 
   Web Hosting and Web Master Forums (Home) -> Apache RSS
Next:  Odd performance behaviour with FastCGI and FastCg..  
Author Message
user2825

External


Since: Jun 15, 2004
Posts: 2



(Msg. 1) Posted: Tue Jun 15, 2004 6:01 pm
Post subject: How to enable cookie in the server
Archived from groups: alt>apache>configuration (more info?)

Hi,

I am trying setup the Apache 2.0.40 on the RedHat 10. I can't seem to
store the cookie. I checked all the environment variables on the server
from the browser, HTTP_COOKIE is not listed. The codes for listing the
environment are placed after set-cookie in the perl CGI scripts.

The cookie is enabled in the testing browsers. How do I enable the
COOKIE? don't see any entries relating to COOKIE in httpd.conf or
any other .conf's.

Thank for any help or pointers.

Y.

 >> Stay informed about: How to enable cookie in the server 
Back to top
Login to vote
hans1

External


Since: Mar 29, 2004
Posts: 672



(Msg. 2) Posted: Wed Jun 16, 2004 12:46 am
Post subject: Re: How to enable cookie in the server [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

"A User" <md RemoveThis @universal.net> schreef in bericht
news:rIHzc.398$Ny6.1280@mencken.net.nih.gov...
 > I am trying setup the Apache 2.0.40 on the RedHat 10. I can't seem to
 > store the cookie. I checked all the environment variables on the server
 > from the browser, HTTP_COOKIE is not listed. The codes for listing the
 > environment are placed after set-cookie in the perl CGI scripts.
 > The cookie is enabled in the testing browsers. How do I enable the
 > COOKIE? don't see any entries relating to COOKIE in httpd.conf or
 > any other .conf's.
First time to see a freshly written cookie been sent _back_ to the server is
in the next requests.
Normally, it is your script -not Apache- that has to write the cookie to the
browser. That script might put the wrong server or path in it, causing the
browser to ignore or not return your cookie ...

HansH<!-- ~MESSAGE_AFTER~ -->

 >> Stay informed about: How to enable cookie in the server 
Back to top
Login to vote
user2825

External


Since: Jun 15, 2004
Posts: 2



(Msg. 3) Posted: Wed Jun 16, 2004 12:46 am
Post subject: Re: How to enable cookie in the server [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

HansH wrote:
 > "A User" <md.RemoveThis@universal.net> schreef in bericht
 > news:rIHzc.398$Ny6.1280@mencken.net.nih.gov...
 >
  >>I am trying setup the Apache 2.0.40 on the RedHat 10. I can't seem to
  >>store the cookie. I checked all the environment variables on the server
  >>from the browser, HTTP_COOKIE is not listed. The codes for listing the
  >>environment are placed after set-cookie in the perl CGI scripts.
  >>The cookie is enabled in the testing browsers. How do I enable the
  >>COOKIE? don't see any entries relating to COOKIE in httpd.conf or
  >>any other .conf's.
 >
 > First time to see a freshly written cookie been sent _back_ to the server is
 > in the next requests.
 > Normally, it is your script -not Apache- that has to write the cookie to the
 > browser. That script might put the wrong server or path in it, causing the
 > browser to ignore or not return your cookie ...
 >
 > HansH


Thanks. It turns out that the domain I used, from truncating the part
before the first ., is not working as the domain of the web server. I
removed the domain field in the set-cookie, and it worked fine.

Now, how do you determine a domain then?

Y.<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: How to enable cookie in the server 
Back to top
Login to vote
hans1

External


Since: Mar 29, 2004
Posts: 672



(Msg. 4) Posted: Wed Jun 16, 2004 2:35 am
Post subject: Re: How to enable cookie in the server [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

"A User" <md RemoveThis @universal.net> schreef in bericht
news:bjJzc.400$Ny6.1215@mencken.net.nih.gov...
 > HansH wrote:
 > Thanks. It turns out that the domain I used, from truncating the part
 > before the first ., is not working as the domain of the web server. I
 > removed the domain field in the set-cookie, and it worked fine.
 >
 > Now, how do you determine a domain then?
IOW have your cookie returned to any server in the domain 'foo.bar' use
'Set_cookie: ... domain=.foo.bar ...'

<a style='text-decoration: underline;' href="http://ietf.org/rfc/rfc2109.txt?number=2109" target="_blank">http://ietf.org/rfc/rfc2109.txt?number=2109</a>
4.2.2 Set-Cookie Syntax
" Domain=domain
Optional. The Domain attribute specifies the domain for which the
cookie is valid. An explicitly specified domain must always start
with a dot.

You hardly ever have to worry about this, most script-engines use
'server.foo.bar' by default.

Hans<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: How to enable cookie in the server 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
Custom 404 causes problems with cookie - In httpd.conf I added ErrorDocument 404 /404/index.php between the <Directory /> and </Directory> tags. In the body I set a cookie called ABC as follows. // Set the ABC cookie, the value determines where the user's browser is directed after...

Tomcat session cookie configuration - Hello, I want to use Tomcat 5 into the following architecture : Apache 2 (host A)-----> Tomcat 5 (host B) Apache 2 has rewrite rules : Client URL : https://www.my_site.org/my_internet_url/my_jsp.jsp (host A) Real URL : ..

Cookie Issues with Main Domain and Subdomains - Good evening folks, I hope this won't be too much of a burden in asking but I seem to be scratching a wooden post down to mere pulp right now. ;) I own the following main domain: nukecops.com From that I have created several subdomains, examples..

cant enable cgi - Hi, I've got Mandrake 9.2 installed and apache 2 Server Version: Apache-AdvancedExtranetServer/1.3.28 (Mandrake Linux/3mdk) mod_perl/1.28 Server Built: Sep 15 2003 07:33:36 I've got a line in my html file: &lt;!--#exec..

How to enable SSL? - I can access my apache server 2.0.46 via http://mydomain.com. However, I cannot access https://mydomain.com. I've obtained a temporary cert from VeriSign, configured the ssl.conf like: SSLCertificateFile /etc/httpd2/conf/ssl.crt/public.crt..
   Web Hosting and Web Master Forums (Home) -> Apache All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]