Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid

SSI and access to client cookies

by rpike (Scribe)
on Sep 10, 2010 at 18:14 UTC ( #859674=perlquestion: print w/replies, xml ) Need Help??
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 (Canon) 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

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://859674]
Approved by Corion
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (5)
As of 2018-05-26 09:09 GMT
Find Nodes?
    Voting Booth?