rpike has asked for the wisdom of the Perl Monks concerning the following question:

Do SSIs have access to the cookie from the client browser that requested the page? It "seems" to not have access. I have a SSI that makes a call to an exec (a perl CGI app). In that app, it attempts to grab a cookie from the client to determine a session to load. Each time a SSI was encountered on a page to attempt such a call a new session file was created on the server (i.e. using CGI::Session). This question shouldn't require any code as of yet. The only thing I'm wondering is if a perl script used in a SSI has access to cookies on the client side? Any help would be greatly appreciated.

Replies are listed 'Best First'.
Re: SSI and access to client cookies
by talexb (Chancellor) on Sep 10, 2010 at 19:50 UTC

    It should have access to the cookie, but it may not be able to update the cookie, since SSI means Apache is taking care of outputting the headers for that page. Or at least that was my recent experience with SSI and cookies.

    Alex / talexb / Toronto

    "Groklaw is the open-source mentality applied to legal research" ~ Linus Torvalds