perl-embperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From allen haim <al...@netherrealm.net>
Subject Re: Unable to set cookies
Date Mon, 09 May 2005 22:27:52 GMT
Hey, it works again! Thanks Cliff and Gerald.

At some point, I added the line 

PerlSetEnv EMBPERL_OPTIONS 16384

to my conf (i.e. optEarlyHttpHeader)

I don't know why I thought I needed this. I have just deleted that line, and
everything works again.

It makes sense -- if the headers are sent early, they don't know about the
session info yet. Still, maybe a little warning in the doc under
'optEarlyHttpHeader' that it will disable session management would be very
helpful to those of us who are still starting out with Embperl.

Allen

On Sat, May 07, 2005 at 10:03:46PM +0200, Gerald Richter wrote:
> Hi Gerald,
> > 
> > I've sent messages to the list about this problem but I am 
> > still stuck, and I can't deliver my application like this. 
> > Cliff Rayman tried to help but his advice didn't work.
> > 
> > Session management has simply stopped working -- it used to 
> > work, and now it doesn't. In the simplest example:
> > 
> > [-
> > 
> > use Data::Dumper;
> > 
> > $udat{'allen'} = 'hello';
> > -]
> > 
> > <p>[+ Data::Dumper->Dump([\%udat]) +]
> > 
> > produces:
> > 
> > $VAR1 = { 'allen' => 'hello', '_session_id' => 
> > '1fb99c0e5efe832edafa75a3b2db170f' };
> > 
> > meaning that some magic is happening with %udat; but the 
> > cookie just isn't being set. 
> > 
> > There is nothing in the server log either. 
> > 
> > This is the output of wget -S :
> > 
> > 1 HTTP/1.1 200 OK
> > 2 Date: Wed, 04 May 2005 15:08:48 GMT
> > 3 Server: Embperl/2.0rc3 Apache/2.0.52 (Unix) 
> > mod_perl/1.999.21 Perl/v5.8.5
> > 4 Connection: close
> > 5 Content-Type: text/html; charset=ISO-8859-1
> > 
> > How do I troubleshoot this? 
> > 
> 
> Could you try to enable dbgSession in Embperl_Debug in your httpd.conf and
> look at /tmp/embperl.log if there are any hints?
> 
> Let me know what you see.
> 
> Gerald
> 

-- 

happy random U.S. amendment to a war crimes treaty, Apr 6., 1984:

... SHALL NOT APPLY TO DISPUTES WITH ANY CENTRAL AMERICAN STATE



---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org


Mime
View raw message