Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

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.

Comment on SSI and access to client cookies
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?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://859674]
Approved by Corion
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (7)
As of 2014-11-26 23:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My preferred Perl binaries come from:














    Results (177 votes), past polls