session records bulding up

2003-01-13 Thread Alexandru Deva
Title: session records bulding up






Hi!


I'm new to both Embperl and Apache::Session, so I have to ask. I’m inclined to believe it's a Session issue, but maybe one of you can help me. 

In my configurations, the session ids are stored in a mysql db. The problem is that db records are building up in the sessions table, sometimes even if I reload the same page (a page with touches %udat). I now have tens of records in the table, and I'm sure that the older ones reffer to ancient sessions.

The questions: Who handles the cleanup of that table, and if I have to do it by hand, how do I select the records that I may safely remove?

Thanks!






---The content of this communication is classified as Mobifon SA Romania Confidential and Proprietary Information.The content of this communication is intended solely for the use of the individual or entity to whom it is addressed and others authorized to receive it. If you are not the intended recipient you are hereby notified that any disclosure, copying, distribution or taking any action in reliance on the contents of this information is strictly prohibited and may be unlawful. If you have received this communication in error, please notify us immediately by responding to this communication then delete it from your system. We appreciate your assistance in preserving the confidentiality of our correspondence. Thank you. Prezentul mesaj constituie o Informatie confidentiala si este proprietatea exclusiva a  MobiFon S.A.. Mesajul se adreseaza numai persoanei fizice sau juridice mentionata ca destinatara, precum si altor persoane autorizate sa-l primeasca. In cazul in care nu sunteti destinatarul vizat, va aducem la cunostinta ca dezvaluirea, copierea, distribuirea sau initierea unor actiuni pe baza prezentei informatii sunt strict interzise si atrag raspunderea civila si penala. Daca ati primit acest mesaj dintr-o eroare, va rugam sa ne anuntati imediat, ca raspuns la mesajul de fata, si sa-l stergeti apoi din sistemul dvs. Apreciem si va multumim pentru sprijinul acordat in pastrarea confidentialitatii corespondentei noastre.---


print OUT "text"; inside sub.

2003-01-13 Thread Maurício Amorim

    I read in an question in mailing list archive that the print OUT in subs not 
    function. 
    I have problems with this, because the html is not generate in this case.
 
    Somebody can tell if it is already possible ?
 
 
    Thank you, Mauricio.
 
 
 
 
   

Execute is not sending request object to executed page

2003-01-13 Thread Scott Chapman
I'm attempting to execute a page and redirect the output to a file. This is 
all that's in the page I'm loading:
[- Execute({inputfile=> 'page.epl', output => '/tmp/output.html' }); -]

page.epl begins with :
[$var $req . $]
[- $req = shift; -]
...
...

$req is not arriving where it can be unshifted apparently or the 
embperl::object mechanism is not working with an Execute? (code in 
constants.epl is not being executed).   I can load page.epl normally in the 
browser and it works great. I'm running Apache 1.3.27 on RedHat 7.3 using 
Embperl 2.0B8, ModPerl 1.27.

What do I need to do to make this work? I thought the request object is passed 
to all epl pages.

Scott

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




Re: Re:Problems with $req_rec -> prev -> pnotes('EMBPERL_ERRORS') ;

2003-01-13 Thread Gerald Richter

>When i use [- $errors = $req_rec -> prev -> pnotes('EMBPERL_ERRORS') ; -]
>the apache log: (stay in loop)
>[Fri Jan 10 12:55:38 2003] [error] [29842]ERR:  24:  Error in Perl code:
Can't call method "pnotes" on an undefined value at
/home/masilva/local/apache/htdocs/embperl/verdoc-des/err.epl line 8.

There is no previous request, because you do an external request, you need
to do a subrequest

instead of

> ErrorDocument 500
http://merlin.cpqd.com.br:8082/embperl/verdoc-des/err.epl

write

 ErrorDocument 500 /embperl/verdoc-des/err.epl

Gerald

-
Gerald Richterecos electronic communication services gmbh
Internetconnect * Webserver/-design/-datenbanken * Consulting

Post:   Tulpenstrasse 5 D-55276 Dienheim b. Mainz
E-Mail: [EMAIL PROTECTED] Voice:+49 6133 925131
WWW:http://www.ecos.de  Fax:  +49 6133 925152
-



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




Re: Re:Error HTTP 500 Internal server error in IE 6.0

2003-01-13 Thread Gerald Richter

>I change directive Location by Directory and 500 internal server error in
IE apprently was
>resolved.
>why will be ?

Maybe there is another Location directive in your config, that hides the
Location /embperl and Directory is not hidden by the Location directive.

There is a document inside of the Apache docs that describes how Location
and Directory works togeter. It's really worth reading it

Gerald


-
Gerald Richterecos electronic communication services gmbh
Internetconnect * Webserver/-design/-datenbanken * Consulting

Post:   Tulpenstrasse 5 D-55276 Dienheim b. Mainz
E-Mail: [EMAIL PROTECTED] Voice:+49 6133 925131
WWW:http://www.ecos.de  Fax:  +49 6133 925152
-


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




Re: session records bulding up

2003-01-13 Thread Keith Watanabe


The questions: Who
handles the cleanup of that table, and if I have to do it by hand, how do
I select the records that I may safely remove?
Here's a page that describes how sessions in embperl are being
handled:
http://www.ecos.de/embperl/pod/doc/Embperl.-page-6-.htm
I think though, from the looks of the documentation, you have to manage
the lifespan of the sessions on the server side yourself (anyone who
knows otherwise, please correct me if i'm wrong).
The main issue is that the way Apache::Session requires sessions in the
database, it has no timestamp so you can't easily run a cronjob that
blows the old sessions away (where if you used a flat file mechanism you
could).  Maybe for now you should switch your persistence mechanism
to a flat file and then run a cronjob that nukes the session files that
are stale.
The only other thing i can think of is to create a secondary session
table where you take the session id and insert that into another table
with the timestamp.  Then later when the session grows stale, you
nuke both sessions.  It's nasty but I don't see any easy way around
this issue.
One more way which is probably evil but better overall, imo, is to add a
field to the session table with the timestamp and then edit the
Apache::Session module that handles Mysql persistence, so that you can
insert a timestamp.  I think if you were able to use postgres you
might be able to use a trigger so that anytime there's an insert or
update, you could update the timestamp as well, but that's off
topic.



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



Table inside Table

2003-01-13 Thread Maurício Amorim

Hi list, 
 
I need generate an table that can have table inside table.
I am trying an recursive routine, but i don't am getting sucess, because
the html is not generate. 
 
Exist any form for do it.
I am trying an explorer in html. (simple)
 
Thank you.