You are viewing a plain text version of this content. The canonical link for it is here.
Posted to apache-bugdb@apache.org by Michael Evans <mj...@yahoo.com> on 2001/05/13 20:08:24 UTC

general/7713: I cannot find a way to expose the value of a known cookie from SSI (or any other module).

>Number:         7713
>Category:       general
>Synopsis:       I cannot find a way to expose the value of a known cookie from SSI (or any other module).
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    apache
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   apache
>Arrival-Date:   Sun May 13 11:10:00 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     mjevans1983011@yahoo.com
>Release:        1.3.19
>Organization:
apache
>Environment:
Linux 2.4.3 i586, custom build.
>Description:
I'd like to be able to retrieve the value of a cookie that I set.

The cookie is set on redirection to a no-access page which contains terms of use, upon agreeing a second cookie is set.
Mod_Rewrite is supposed to check for the existance of this second cookie when it allows unrestricted access to my site.
The access cookie is set on a second page, the first page has set the origional url request in a cookie that should be accessable to use as a link target in the access granted page.

It would also be useful to me if I didn't have to use a regex expression to test for the access cookie.  I think that an optimised output matched against the desired value would be faster and less resource intensive.
>How-To-Repeat:
This is unknown to me as it is in the construction of the pages and not the output its self.
>Fix:
http://dev.apache.org/presentation/fww96/talk.html
"Maybe look for a way to allow modules to expose variables for logging? I.e. "%(mod_cookie:cookie)m""

HTTP_COOKIE:CookieName Should report the cookie's value.  There should also be ways of accessing other cookie data such as expire time.  Such syntax is not readily aparant to me.
>Release-Note:
>Audit-Trail:
>Unformatted:
 [In order for any reply to be added to the PR database, you need]
 [to include <ap...@Apache.Org> in the Cc line and make sure the]
 [subject line starts with the report component and number, with ]
 [or without any 'Re:' prefixes (such as "general/1098:" or      ]
 ["Re: general/1098:").  If the subject doesn't match this       ]
 [pattern, your message will be misfiled and ignored.  The       ]
 ["apbugs" address is not added to the Cc line of messages from  ]
 [the database automatically because of the potential for mail   ]
 [loops.  If you do not include this Cc, your reply may be ig-   ]
 [nored unless you are responding to an explicit request from a  ]
 [developer.  Reply only with text; DO NOT SEND ATTACHMENTS!     ]