You are viewing a plain text version of this content. The canonical link for it is here.
Posted to embperl@perl.apache.org by Gerald Richter <ri...@ecos.de> on 2002/02/11 20:30:12 UTC

Re: Why doesn't Perl find the file here?

> I just did a completely clean install of Perl and Apache on Win2K to try
to get
> some of this to behave properly.  It's telling me it can't require a file
that is
> where it should be.  Can you make any sense out of this?
>

Mmh, this is very strange. If I don't miss anything
Apache::Session::Store::DB_File complains about that it didn't find it self.
Sorry no idea what's wrong here at the moment. Maybe you try the File store
instead of the DB_File store.

Gerald

P.S. I CC this to the list, there are more poeple which might have a idea
what wrong there


> Scott
>
> error.log:
> [Fri Feb 08 14:24:31 2002] [error] [client 127.0.0.1] Premature end of
script
> headers: c:/program files/apache group/apache/cgi-bin/embpcgi.pl
> [Fri Feb 08 14:24:31 2002] [error] [client 127.0.0.1] Cannot require
> Apache::Session::Store::DB_File (Can't locate DB_File.pm in @INC (@INC
> contains: C:/Perl/lib C:/Perl/site/lib .) at
> C:/Perl/site/lib/Apache/Session/Store/DB_File.pm line 14.
> [Fri Feb 08 14:24:31 2002] [error] [client 127.0.0.1] BEGIN
failed--compilation
> aborted at C:/Perl/site/lib/Apache/Session/Store/DB_File.pm line 14.
> [Fri Feb 08 14:24:31 2002] [error] [client 127.0.0.1] Compilation failed
in
> require at (eval 7) line 3.
> [Fri Feb 08 14:24:31 2002] [error] [client 127.0.0.1] ) at
> C:/Perl/site/lib/Apache/SessionX.pm line 104.
> [Fri Feb 08 14:24:31 2002] [error] [client 127.0.0.1] Compilation failed
in
> require at c:\PROGRA~1\APACHE~1\apache\cgi-bin\embpcgi.pl line 18.
> [Fri Feb 08 14:24:31 2002] [error] [client 127.0.0.1] BEGIN
failed--compilation
> aborted at c:\PROGRA~1\APACHE~1\apache\cgi-bin\embpcgi.pl line 18.
>
> C:\Perl>dir/s DB_File.pm
>  Volume in drive C has no label.
>  Volume Serial Number is D0F7-FAFC
>
>  Directory of C:\Perl\site\lib\Apache\Session
>
> 09/01/2000  03:01p               1,960 DB_File.pm
>                1 File(s)          1,960 bytes
>
>  Directory of C:\Perl\site\lib\Apache\Session\Store
>
> 05/25/2000  11:11p               3,193 DB_File.pm
>                1 File(s)          3,193 bytes
>
>      Total Files Listed:
>                2 File(s)          5,153 bytes
>                0 Dir(s)     696,504,320 bytes free
>


-------------------------------------------------------------
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


Re: Why doesn't Perl find the file here?

Posted by Angus Lees <gu...@switchonline.com.au>.
On Mon, Feb 11, 2002 at 08:30:12PM +0100, Gerald Richter wrote:
> > [Fri Feb 08 14:24:31 2002] [error] [client 127.0.0.1] Cannot require
> > Apache::Session::Store::DB_File (Can't locate DB_File.pm in @INC (@INC
> > contains: C:/Perl/lib C:/Perl/site/lib .) at
> > C:/Perl/site/lib/Apache/Session/Store/DB_File.pm line 14.
> >
> > C:\Perl>dir/s DB_File.pm
> >  Volume in drive C has no label.
> >  Volume Serial Number is D0F7-FAFC
> >
> >  Directory of C:\Perl\site\lib\Apache\Session
> >
> > 09/01/2000  03:01p               1,960 DB_File.pm
> >                1 File(s)          1,960 bytes
> >
> >  Directory of C:\Perl\site\lib\Apache\Session\Store
> >
> > 05/25/2000  11:11p               3,193 DB_File.pm
> >                1 File(s)          3,193 bytes
> >
> >      Total Files Listed:
> >                2 File(s)          5,153 bytes
> >                0 Dir(s)     696,504,320 bytes free

you also need the "DB_File" module itself.

line 14 of Apache::Session::Store::DB_File is "use DB_File;"

check CPAN, activestate, etc.

-- 
 - Gus

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


Re: udat and cookies and expiration

Posted by Gerald Richter <ri...@ecos.de>.
>
> It sounds like you've got a very short expiry time on your cookie from
> within Embperl. The three variables that govern the cookie settings
> are:
>
> EMBPERL_COOKIE_DOMAIN
> EMBPERL_COOKIE_PATH
> EMBPERL_COOKIE_EXPIRES
>

Additional note: When EMBPERL_COOKIE_EXPIRES is not set (which is the
default) the cookie only exists until the user closes his browser i.e. it
will never be saved to disk.

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


Re: udat and cookies and expiration

Posted by Andrew O'Brien <an...@switchonline.com.au>.
On Fri, Feb 22, 2002 at 01:15:46PM +0100, Hans de Groot wrote:
> Hi,
> 
> I was wondering how udat and sessions are managed..  Right now it
> serves me right. I use udat to check logins. and as long as I keep
> my all my iexplore windows open I stay logged in.  When I close all
> windows and go back to the site I have to login again. It seems a
> new session ist started.  In this case it works perfect.  But I
> would like to use $udat to store things like the last page visited
> and maybe the search words they used. (or frameset/frameless mode)
> and this does not work coz it apaears the session is reset after a
> close (or restart) of the browser.
> 
> Any suggestions how to do this? is it possible at all? or do I
> really need to use normal cookies (set the manually), I prefer to
> use $udat if possible.

It sounds like you've got a very short expiry time on your cookie from
within Embperl. The three variables that govern the cookie settings
are:

EMBPERL_COOKIE_DOMAIN
EMBPERL_COOKIE_PATH
EMBPERL_COOKIE_EXPIRES

Try setting these to something like:

EMBPERL_COOKIE_DOMAIN  .mydomain.blah
EMBPERL_COOKIE_PATH    / 
EMBPERL_COOKIE_EXPIRES +7d
(for a 7 day expiry)

Make sure that the cookies aren't being deleted and are definitely
being saved to disk on browser shutdown.

If you can be sure that both the cookie exists in your browser when
you return to the site and that same cookie value exists in your
sessions database at the same time then data in %udat should be
persistent. That's what sessions are for, after all :)

-- 
 Andrew O'Brien                                                               
 Senior Engineer                         email: andrewo@switchonline.com.au.
 Switch Online Group Pty Limited         phone: +61 2 9299 1133             
 ABN 89 092 286 327                      fax:   +61 2 9299 1134             

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


Re: Why doesn't Perl find the file here?

Posted by Randy Kobes <ra...@theoryx5.uwinnipeg.ca>.
On Mon, 11 Feb 2002, Gerald Richter wrote:

> > I just did a completely clean install of Perl and Apache on Win2K to try
> to get
> > some of this to behave properly.  It's telling me it can't require a file
> that is
> > where it should be.  Can you make any sense out of this?
> >
>
> Mmh, this is very strange. If I don't miss anything
> Apache::Session::Store::DB_File complains about that it didn't find it self.
> Sorry no idea what's wrong here at the moment. Maybe you try the File store
> instead of the DB_File store.
> >
> > error.log:
> > [Fri Feb 08 14:24:31 2002] [error] [client 127.0.0.1] Cannot require
> > Apache::Session::Store::DB_File (Can't locate DB_File.pm in @INC (@INC
> > contains: C:/Perl/lib C:/Perl/site/lib .) at
> > C:/Perl/site/lib/Apache/Session/Store/DB_File.pm line 14.

Might this be because the DB_File module hasn't been installed?
It's not included in the standard ActivePerl distribution, but
is available through 'ppm install DB_File'.

best regards,
randy kobes


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


udat and cookies and expiration

Posted by Hans de Groot <ha...@interspective.nl>.
Hi,

I was wondering how udat and sessions are managed.. 
Right now it serves me right. I use udat to check logins. and as long as I keep my all my iexplore windows open I stay logged in.
When I close all windows and go back to the site I have to login again. It seems a new session ist started.
In this case it works perfect. 
But I would like to use $udat to store things like the last page visited and maybe the search words they used. (or frameset/frameless mode)
and this does not work coz it apaears the session is reset after a close (or restart) of the browser.

Any suggestions how to do this? is it possible at all? or do I really need to use normal cookies (set the manually), I prefer to use $udat if possible. 

Thanks

Hans de Groot
 

------
Hans de Groot
Interspective Internet Services B.V.
Tel: +31 (0) 30 6001180
Fax +31 (0) 30 6044204
www:   http://www.interspective.nl
email:   hansg@interspective.nl




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