perl-embperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sean Conley <scon...@cs.csubak.edu>
Subject Re: Cookieless Session Management
Date Mon, 05 Aug 2002 07:27:34 GMT
Cookieless session management seems to be working correctly now... I
have NO idea what I changed or anything of that nature, but I have
started a more complex sort of application and everything is fine.  This
seems odd since make test fails, but then again computers are fickle
beings.

The only problem I run into now is that Mozilla doesn't seem to be
recognizing cookie expiration times.  Is there a known bug with Mozilla
1.0 relating to this?  I have yet to try it in IE since I haven't gotten
around to upgrading my dedicated webserver properly.  Hopefully I won't
run into a whole new set of problems, or the same ones all over again,
since that box runs OpenBSD as opposed to Linux.  If so, you'll be
hearing more from me.

> Hi,
> 
> I just have tested the session mangement without cookies and it works for
> me. Please try in the Embperl directory to run
> 
> make test
> 
> and then request
> 
> http://localhost:8531/embperl/uidurl/seturlsess.htm
> 
> You should see three links at the bottom of the page, each should have a id
> included and look like the following:
> 
> http://localhost:8531/embperl/uidurl/cont.htm?EMBPERL_UID=:b05f07067e67fc110
> 33efa5fd440acb5
> 
> Does it?
> 

See what I already typed above... since make test fails I copied these
files to my apache embperl directory, and they appear correct.

> 
> 
> > Here is what I have found... I went back and ran make test on Embperl.
> > Most, but not all, of the mod_perl tests fail with the message "ERR:EOF
> > instead of reponse status line".
> 
> Mmh, that doesn't sound good...
> 
> Please run
> 
> make test TESTARGS="-h"
> 
> and send me the test/tmp/httpd.err.log and test/tmp/test.log

httpd.err.log is blank, the content of test.log is included at the end
of the message.

> 
> >
> > It still remains that cookie based session management does seem to work
> 
> I am sure we get it working, but first we should get make test working, to
> be sure your environment is correctly setup.
> 
> >
> > BTW, I do think Embperl is a VERY cool thing.  I was considering
> > learning JSP, which still may happen just for marketability, and found
> > Embperl instead.  I have been a Perl nut for a few years now, and really
> > am impressed with what has become of Embperl.
> >
> 
> :-)
> 
> Gerald
> 
> -------------------------------------------------------------
> Gerald Richter    ecos electronic communication services gmbh
> Internetconnect * Webserver/-design/-datenbanken * Consulting
> 
> Post:       Tulpenstrasse 5         D-55276 Dienheim b. Mainz
> E-Mail:     richter@ecos.de         Voice:    +49 6133 925131
> WWW:        http://www.ecos.de      Fax:      +49 6133 925152
> -------------------------------------------------------------
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
> For additional commands, e-mail: embperl-help@perl.apache.org
> 

Sean

contents of test.log:
 
[724]Using APACHE for output...
[724] Use Recipe Embperl
[724]SYNTAX: switch to Embperl::Syntax::Embperl
[724]Reading /home/install/Embperl-2.0b8/test/html/ascii as input using PerlIO (3161 Bytes)...
[724]PERF: Parse Start Time:	    30 ms 
[724]PERF: Parse End Time:		    30 ms 
[724]PERF: Parse Time:		    0 ms 
[724]PERF: DOMSTAT: MemUsage = 67136 Bytes  numNodes = 5  numLevelLookup = 0  numLevelLookupItem
= 0  numStr = 75  numReplace = 0  
[724]PERF: Compile Start Time:	    30 ms 
[724]PERF: Compile End Time:	    40 ms 
[724]PERF: After Compile Exec End Time: 40 ms 
[724]PERF: Perl Compile End Time:	    40 ms 
[724]PERF: Compile Time:		    10 ms 
[724]PERF: DOMSTAT: MemUsage = 68176 Bytes  numNodes = 5  numLevelLookup = 0  numLevelLookupItem
= 0  numStr = 75  numReplace = 0  
[724]PERF: Run Start Time: 40 ms 
[724]PERF: Run End Time:   40 ms 
[724]PERF: Run Time:       0 ms 
[724]PERF: DOMSTAT: MemUsage = 68340 Bytes  numNodes = 5  numLevelLookup = 0  numLevelLookupItem
= 0  numStr = 75  numReplace = 0  
[724]PERF: input = ???
[724]PERF: Time: 40 ms 
[724]Request finished. Mon Aug  5 00:13:18 2002
. Entry-SVs: 16382  Exit-SVs: 20020 
[724]REQ: ***** Start Request at Mon Aug  5 00:13:18 2002
[724]Use App: Embperl
[724]HDR:  3
[724]HDR:  Connection=close
[724]HDR:  Host=localhost:8531
[724]HDR:  User-Agent=libwww-perl/5.65
[724]ENV:  QUERY_STRING=
[724]ENV:  REMOTE_PORT=32806
[724]ENV:  HTTP_USER_AGENT=libwww-perl/5.65
[724]ENV:  HTTP_HOST=localhost:8531
[724]ENV:  EMBPERL_SRC=/home/install/Embperl-2.0b8
[724]ENV:  GATEWAY_INTERFACE=CGI-Perl/1.1
[724]ENV:  DMALLOC_OPTIONS=log=/home/install/Embperl-2.0b8/test/tmp/httpd.dmalloc.log,debug=0x3f03
[724]ENV:  SCRIPT_NAME=/embperl/pure.htm
[724]ENV:  SERVER_NAME=localhost
[724]ENV:  MOD_PERL=mod_perl/1.27
[724]ENV:  SCRIPT_FILENAME=/home/install/Embperl-2.0b8/test/html/pure.htm
[724]ENV:  PATH=/usr/local/sbin:/usr/local/bin:/sbin:/usr/sbin:/bin:/usr/bin:/opt/gnome/bin
[724]ENV:  SERVER_ADDR=127.0.0.1
[724]ENV:  SERVER_PROTOCOL=HTTP/1.1
[724]ENV:  HTTP_CONNECTION=close
[724]ENV:  SERVER_SIGNATURE=
[724]ENV:  SERVER_SOFTWARE=Apache/1.3.26 (Unix) Embperl/2.0b8 mod_perl/1.27
[724]ENV:  SERVER_ADMIN=[no address given]
[724]ENV:  REMOTE_ADDR=127.0.0.1
[724]ENV:  DOCUMENT_ROOT=/home/install/Embperl-2.0b8/test
[724]ENV:  REQUEST_URI=/embperl/pure.htm?
[724]ENV:  REQUEST_METHOD=GET
[724]ENV:  SERVER_PORT=80
[724]Formdata... length = 0
[724]Using APACHE for output...
[724] Use Recipe Embperl
[724]CACHE: Created new CacheItem *file:/home/install/Embperl-2.0b8/test/html/pure.htm; expires_in=0
expires_func=no expires_filename=/home/install/Embperl-2.0b8/test/html/pure.htm cache=no
[724]SYNTAX: switch to Embperl::Syntax::Embperl
[724]CACHE: Created new CacheItem *file:/home/install/Embperl-2.0b8/test/html/pure.htm*epparse:Embperl;
expires_in=0 expires_func=no expires_filename= cache=no
[724]CACHE: Created new CacheItem *file:/home/install/Embperl-2.0b8/test/html/pure.htm*epparse:Embperl*epcompile:;
expires_in=0 expires_func=no expires_filename= cache=yes
[724]CACHE: Created new CacheItem *file:/home/install/Embperl-2.0b8/test/html/pure.htm*epparse:Embperl*epcompile:*eprun:;
expires_in=0 expires_func=no expires_filename= cache=no
[724]CACHE: *file:/home/install/Embperl-2.0b8/test/html/pure.htm stat file /home/install/Embperl-2.0b8/test/html/pure.htm
mtime=900447080 size=211
[724]CACHE: *file:/home/install/Embperl-2.0b8/test/html/pure.htm expired because file /home/install/Embperl-2.0b8/test/html/pure.htm
changed
[724]CACHE: *file:/home/install/Embperl-2.0b8/test/html/pure.htm*epparse:Embperl expired because
dependencies is expired or newer
[724]CACHE: *file:/home/install/Embperl-2.0b8/test/html/pure.htm*epparse:Embperl*epcompile:
expired because dependencies is expired or newer
[724]CACHE: *file:/home/install/Embperl-2.0b8/test/html/pure.htm*epparse:Embperl*epcompile:*eprun:
expired because dependencies is expired or newer
[724]CACHE: *file:/home/install/Embperl-2.0b8/test/html/pure.htm*epparse:Embperl*epcompile:*eprun:
get from provider
[724]CACHE: *file:/home/install/Embperl-2.0b8/test/html/pure.htm*epparse:Embperl*epcompile:
get from provider
[724]CACHE: *file:/home/install/Embperl-2.0b8/test/html/pure.htm*epparse:Embperl get from
provider
[724]Reading /home/install/Embperl-2.0b8/test/html/pure.htm as input using PerlIO (211 Bytes)...
[724]PARSE: Start parsing /home/install/Embperl-2.0b8/test/html/pure.htm DomTree = 2
[724]PARSE: AddNode: +00  Element parent=0 node=1 type=1 text=att (#72) 
[724]PARSE: AddNode: +00  Element parent=0 node=2 type=9 text=Document (#4) 
[724]PARSE: AddNode: +00  Attribut parent=2 node=3 type=2 text=<domtree> (#3) 
[724]PARSE: AddNode: +00  AttributValue parent=3 node=3 type=34 text=<noname> (#2) 
[724]PARSE: AddNode: +00  Element parent=2 node=4 type=4 text= (#1) 
[724]PARSE: AddNode: +00  Element parent=2 node=5 type=4 text=
<html>
<head>
<title>Some tests for Embperl</title>
</head>

<body>

Here it starts with some HTML Text<P>

This pure HTML Text. Nothing todo for Embperl,<BR>

just pass it thru...

<P>Ok.<P>


</body>
</html>
 (#76) 
[724]PARSE: AddNode: +00  Element parent=2 node=6 type=4 text= (#1) 
[724]PERF: Parse Start Time:	    0 ms 
[724]PERF: Parse End Time:		    0 ms 
[724]PERF: Parse Time:		    0 ms 
[724]PERF: DOMSTAT: MemUsage = 70384 Bytes  numNodes = 10  numLevelLookup = 0  numLevelLookupItem
= 0  numStr = 77  numReplace = 0  
[724]EPCOMP: Start compiling /home/install/Embperl-2.0b8/test/html/pure.htm DomTree = 2
[724]EPCOMP: #2 L0 -------> parent=0 node=2 type=9 text=Document (#4,compile) 
[724]EPCOMP: #2 L0 CompileTimeCode:    
use vars ('$_ep_DomTree', '@ISA', '@param') ;
*_ep_rp=\&XML::Embperl::DOM::Node::iReplaceChildWithCDATA;
*_ep_rpid=\&XML::Embperl::DOM::Node::iReplaceChildWithMsgId;
*_ep_rpurl=\&XML::Embperl::DOM::Node::iReplaceChildWithUrlDATA;
*_ep_cp=\&XML::Embperl::DOM::Tree::iCheckpoint;
*_ep_dcp=\&XML::Embperl::DOM::Tree::iDiscardAfterCheckpoint;
*_ep_opt=\&Embperl::Cmd::Option;
*_ep_hid=\&Embperl::Cmd::Hidden;
*_ep_ac=\&XML::Embperl::DOM::Node::iAppendChild;
*_ep_sa=\&XML::Embperl::DOM::Element::iSetAttribut; 
Embperl::Util::CreateAliases ;

[724]TAB:  get EscMode = 7, Used = 2
[724]EPCOMP: #2 L0 Code:     
# any initialisation could be put here
$DB::single = 1 ;
$maxrow=100;$maxcol=10;

[724]EPCOMP: #2 L0 Set Checkpoint pending
[724]EPCOMP: #4 L0 -------> parent=2 node=4 type=4 text= (#1,compile) 
[724]EPCOMP: #4 L0 Checkpoint
[724]EPCOMP: #5 L1 -------> parent=2 node=5 type=4 text=
<html>
<head>
<title>Some tests for Embperl</title>
</head>

<body>

Here it starts with some HTML Text<P>

This pure HTML Text. Nothing todo for Embperl,<BR>

just pass it thru...

<P>Ok.<P>


</body>
</html>
 (#76,-) 
[724]EPCOMP: #6 L0 -------> parent=2 node=6 type=4 text= (#1,compile) 
[724]EPCOMP: #2 L0 CodeEnd:    # Include here any cleanup code
                                $DB::single = 0 ;
                                
[724]EPCOMP: #2 L0 Set Checkpoint pending
[724]EPCOMP: #-1  Checkpoint
[724]DEF:  Line 1:  
# any initialisation could be put here
$DB::single = 1 ;
$maxrow=100;$maxcol=10;

 _ep_cp(1) ;
# Include here any cleanup code
                                $DB::single = 0 ;
                                
 _ep_cp(2) ;

[724]PERF: Compile Start Time:	    0 ms 
[724]PERF: Compile End Time:	    10 ms 
[724]PERF: After Compile Exec End Time: 10 ms 
[724]PERF: Perl Compile End Time:	    10 ms 
[724]PERF: Compile Time:		    10 ms 
[724]PERF: DOMSTAT: MemUsage = 71424 Bytes  numNodes = 10  numLevelLookup = 0  numLevelLookupItem
= 0  numStr = 77  numReplace = 0  
[724]DOM: DomTree 3 depends on DomTree 2
[724]EVAL< <unknown>
[724]Checkpoint: ok DomTree=3 1 -> 1 SVs=20239
[724]Checkpoint: ok DomTree=3 2 -> 2 SVs=20239
[724]EVAL> <undefined>
[724]PERF: Run Start Time: 10 ms 
[724]PERF: Run End Time:   10 ms 
[724]PERF: Run Time:       0 ms 
[724]PERF: DOMSTAT: MemUsage = 71588 Bytes  numNodes = 10  numLevelLookup = 0  numLevelLookupItem
= 0  numStr = 77  numReplace = 0  
[724]SES:  Received Cookie ID:   New Cookie ID:   User data is NOT modified
[724]HDR:  3
[724]HDR:  Connection=close
[724]HDR:  Transfer-Encoding=chunked
[724]HDR:  Content-Type=text/html
[724]toString: Node=4(4) RepeatLevel=0 type=4 flags=1 text=><= (#1) SVs=20206
[724]toString: Node=5(5) RepeatLevel=0 type=4 flags=1 text=>
<html>
<head>
<title>Some tests for Embperl</title>
</head>

<body>

Here it starts with some HTML Text<P>

This pure HTML Text. Nothing todo for Embperl,<BR>

just pass it thru...

<P>Ok.<P>


</body>
</html>
<= (#76) SVs=20206
[724]toString: Node=6(6) RepeatLevel=0 type=4 flags=1 text=><= (#1) SVs=20206
[724]CACHE: Free content for *file:/home/install/Embperl-2.0b8/test/html/pure.htm*epparse:Embperl*epcompile:*eprun:
[724]Delete: DomTree = 3 SVs=20206
[724]CACHE: Free content for *file:/home/install/Embperl-2.0b8/test/html/pure.htm*epparse:Embperl
[724]CACHE: Free content for *file:/home/install/Embperl-2.0b8/test/html/pure.htm
[724]PERF: input = ???
[724]PERF: Time: 10 ms 
[724]Request finished. Mon Aug  5 00:13:18 2002
. Entry-SVs: 20005  Exit-SVs: 20203 
[724]PERF: DOMSTAT: MemUsage = 71424 Bytes  numNodes = 10  numLevelLookup = 0  numLevelLookupItem
= 0  numStr = 77  numReplace = 0  


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


Mime
View raw message