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 Wed, 20 Apr 2005 20:08:30 GMT
Hi,

OK, I've looked in /tmp, and I see a file with the same name as the
_session_id key in %udat.

Looking in that file, I see some control characters throughout, I see my
data in plain text, (just 'allen' and 'hello') and I see the session id. 

Now what? 

Allen

On Mon, Apr 18, 2005 at 09:11:45PM -0700, ___cliff rayman___ wrote:
> 
> allen haim wrote:
> 
> >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.
> > 
> >
> so, no way for your browser to return one - sessions are definetly broken.
> 
> >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?
> > 
> >
> yes - the assignment to the udat hash element should cause session 
> handling to start and the SET-COOKIE header to be sent.
> 
> >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.
> > 
> >
> look at your session directory and see if it contains any sessions.  
> look at this particular session number to see if anything is set.
> 
> -- 
> _____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
> ______________________________________________________
> 

-- 
happy random snippet from Allen Haim reviewing Allen Haim:


Since he insists on playing only his own mediocre original tunes, audiences are assured of
hearing nearly the exact same show every time.


[more at http://www.netherrealm.net/~allen/songs]

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


Mime
View raw message