perl-embperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From allen haim <al...@netherrealm.net>
Subject Re: How to troubleshoot session handling?
Date Mon, 18 Apr 2005 22:04:46 GMT
Thanks for the response, Cliff.

wget -S gives me:

---------------
1 HTTP/1.1 200 OK
2 Date: Mon, 18 Apr 2005 15:01:31 GMT
3 Server: Embperl/2.0rc2 Apache/2.0.52 (Unix) mod_perl/1.999.21
Perl/v5.8.5
4 Content-Length: 142
5 Keep-Alive: timeout=15, max=100
6 Connection: Keep-Alive
7 Content-Type: text/html; charset=ISO-8859-1
----------------

so there is nothing about a session.

and the server log says only:

----------------
[Mon Apr 18 10:56:57 2005] [notice] SIGHUP received.  Attempting to restart
[Mon Apr 18 10:56:57 2005] [notice] Embperl/2.0rc2 Apache/2.0.52 (Unix)
mod_perl/1.999.21 Perl/v5.8.5 configured -- resuming normal operations
-----------------

The file I am trying to serve is allen.html:

------------------
[-
$a = 2;
$b = 3;
$udat{'allen'} = 'hello';
-]

<p>hi.
-------------------

I simply can't remember how I had it before -- is the above supposed to set
a cookie immediately?

Incidentally, I looked inside %udat earlier, and noticed that someone had
set the _session_id field set to 2515f2069584f2fe5b4fccd144e1f207. So, some
magic is clearly going on.

Allen

On Mon, Apr 18, 2005 at 02:02:19PM -0700, ___cliff rayman___ wrote:
> allen haim wrote:
> 
> >I can see in Mozilla's Cookie Manager that the cookie isn't being set, and 
> >I
> >am also not getting my values back out of %udat.
> > 
> >
> try at the linux/unix command line:
> wget -S http://www.yourdomain.com/page.htm 2>&1 | less
> 
> this will show you the server response.  You are looking for a line that 
> says:
> SET-COOKIE:
> 
> make sure that the domain is the same as the one you are using and that 
> the expiration date makes sense.
> 
> If you do not have linux/unix, you will have to use:
> telnet www.yourdomain.com 80
> 
> and then hand type the request lines:
> GET /page.htm HTTP/1.1
> Host: www.yourdomain.com
> 
> 
> this has two new lines after the last command.  scroll-up to review the 
> SET-COOKIE line.
> 
> If you do not have a SET-COOKIE line, then look into restart apache and 
> look into your logs for an error message on the starting of session 
> handling.
> 
> 
> -- 
> _____cliff_rayman_____________________________________
> Business Consulting and Turnaround Management
> [web] http://www.rayman.com/
> [web] http://all-clear-turnaround-management.com/
> [eml] cliff __AT__ rayman.com
> [phn] 888-736-3802 x701
> [fax] 818-743-7404
> ______________________________________________________
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
> For additional commands, e-mail: embperl-help@perl.apache.org
> 

-- 
happy random excerpt from the Weblog of J. Alfred Prufrock:

Saturday, April 10, 2004

later, ezra spent the night and we watched teenage mutant ninja turtles on dvd. i made us
root beer floats and we fell asleep talking about all the turtles and shredder, but mostly
michelangelo.

 1:10 AM

http://jalfredprufrock.blogspot.com

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


Mime
View raw message