Hi,

Cookie management works absolutely fine :-) 

I've tested %mdat and %udat to keep counters, and it works. It is just
cookieless which is failing.

Speaking of which - Sean, you appear to be using MySQL for session
storage? I was worried about using MySQL because of any potential large
overhead. Assuming apache::dbi for a persistent connection, how does
MySQL work for it?

I hope you are enjoying the conference Gerald!

Justin

> -----Original Message-----
> From: Gerald Richter [mailto:[EMAIL PROTECTED]] 
> Sent: Friday, July 26, 2002 7:13 PM
> To: Justin Harrison; Sean Conley; [EMAIL PROTECTED]
> Subject: Re: Cookieless Session Management
> 
> 
> Sean and Justin,
> 
> 
> 
> > I've done:
> >
> > EMBPERL_SESSION_MODE 2
> >
> > Do I need to do something special other
> > than that?
> >
> 
> Session management must be working at all. That means 
> Apache::Session and Apache::SessionX should be installed. If 
> cookie based session management is working, then everything 
> should be ok. To verfiy this further run
> 
> make test
> 
> and make sure that session mangement test are ok (and are not skiped).
> 
> If all this is given setting the session mode to 2 should be enough.
> 
> Cookieless session management is a very new feature and not 
> widely used,so maybe there is still a bug in Embperl, but I 
> am sure we will figure out what's going wrong.
> 
> Gerald
> 
> P.S. I am currently on the O'Reilly OpenSource Convention, so 
> I cannot test it right now.
> 
> 
> 
> >
> > > -----Original Message-----
> > > From: Gerald Richter [mailto:[EMAIL PROTECTED]]
> > > Sent: Friday, July 26, 2002 5:24 PM
> > > To: Sean Conley; [EMAIL PROTECTED]
> > > Subject: Re: Cookieless Session Management
> > >
> > >
> > > Basicly you do the right thing and it should work. The 
> only thing I 
> > > could see that is wrong is a missing
> > >
> > > Embperl_UseEnv on
> > >
> > > after the
> > >
> > > PerlModule Embperl
> > >
> > > without that Embperl will not look at the configuration 
> directives 
> > > you set with PerlSetEnv.
> > >
> > > Gerald
> > >
> > > ----- Original Message -----
> > > From: "Sean Conley" <[EMAIL PROTECTED]>
> > > To: <[EMAIL PROTECTED]>
> > > Sent: Friday, July 26, 2002 9:41 PM
> > > Subject: Cookieless Session Management
> > >
> > >
> > > > I am using Embperl 2.0b8,  and am having problems using 
> cookieless 
> > > > session management, achieved by setting PerlSetEnv 
> > > > EMBPERL_SESSION_MODE 2.  When this mode is set,the 
> session ID most 
> > > > definately is appended to the URL, however modifying %udat
> > > no longer
> > > > has any effect.  It seems that the session isn't being tracked 
> > > > properly.  When using sessions with cookies everything works as 
> > > > expected including if I add an href to another page the session 
> > > > information in %udat is accessable in the second page.  I
> > > did notice
> > > > in the debugging info that I get the message
> > > > [396]SES:  Received Cookie ID: 
> 41ab2bf07a3eca989fa3548e1a89e37c  
> > > > New Cookie ID: 41ab2bf07a3eca989fa3548e1a89e37c  User data is
> > > modified when
> > > > the "default" mode is active.  Whereas when
> > > EMBPERL_SESSION_MODE 2 is
> > > > set, the message is simply [396]SES:  Received Cookie ID:
> > > New Cookie
> > > > ID: b8bf5c2763cf170360ec243d728ebcc9  User data is NOT modified 
> > > > for every request.
> > > >
> > > > Is there something that must be done differently when using
> > > cookieless
> > > > sessions?  Are they not fully implemented yet?  Is there
> > > documentation
> > > > somewhere that I am missing?  Or is there something else
> > > entirely?  I
> > > > have appended a copy of the pertinant configuration
> > > information at the
> > > > end of this email.  As you can see, this is an EXTREMELY 
> > > > simplistic test.  I'm hoping that it isn't my own ignorance 
> > > > causing
> > > the problems,
> > > > although that is the case more often than not.
> > > >
> > > > Thanks,
> > > > Sean
> > > >
> > > > httpd.conf:
> > > >
> > > > PerlSetEnv EMBPERL_COOKIE_PATH /
> > > > PerlSetEnv EMBPERL_COOKIE_EXPIRES +30m
> > > > PerlSetEnv EMBPERL_COOKIE_NAME testcookie
> > > > PerlSetEnv EMBPERL_SESSION_CLASSES "MySQL Semaphore" PerlSetEnv 
> > > > EMBPERL_SESSION_ARGS "DataSource=dbi:mysql:sessions
> > > UserName=username
> > > > Password=somepassword" PerlSetEnv EMBPERL_SESSION_MODE 2
> > > >
> > > > PerlModule MD5
> > > > PerlModule Embperl
> > > >
> > > > EMBPERL_LOG /usr/local/apache/logs/embperl.log
> > > > EMBPERL_OBJECT_BASE base.html
> > > > EMBPERL_DEBUG 2097168
> > > >
> > > > Alias /embperl /usr/local/apache/embperl
> > > >
> > > > <Location /embperl>
> > > >    EMBPERL_APPNAME test
> > > >    PerlSetEnv EMBPERL_FILESMATCH "\.htm.?|\.epl$"
> > > >    SetHandler perl-script
> > > >    PerlHandler Embperl::Object
> > > >    Options ExecCGI
> > > > </Location>
> > > >
> > > > test.html:
> > > >
> > > > [-
> > > >    $r = shift;
> > > >    if (!defined($udat{number})){
> > > >       $udat{number} = 0;
> > > >    }
> > > >    $udat{number}++;
> > > > -]
> > > > <html>
> > > >    <body>
> > > >       [+ $udat{number} +]<br>
> > > >    </body>
> > > > </html>
> > > >
> > > >
> > > >
> > > >
> > > 
> --------------------------------------------------------------------
> > > -
> > > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > > For additional commands, e-mail: [EMAIL PROTECTED]
> > > >
> > > >
> > >
> > >
> > > 
> --------------------------------------------------------------------
> > > -
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> > >
> >
> >
> > 
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to