Re: Cookie and Cookieless sessions

2003-12-27 Thread Gerald Richter
>
> No since problems with tables forces me to use EmbperlBlocks. (Since
> I have tables starting and ending in Executes...).
>

You can get the current session id from
$r -> session_id
$r -> session_user_id
$r -> session_state_id

Anyway you should set smodeUDatParam.

The name of the parameters defualts to EMBPERL_UID and can e set with
EMBPERL_COOKIE_NAME

Gerald

> / Stefan
>
> -Original Message-
> From: Gerald Richter [mailto:[EMAIL PROTECTED]
> Sent: den 19 december 2003 05:52
> To: Stefan Cars
> Cc: [EMAIL PROTECTED]
> Subject: Re: Cookie and Cookieless sessions
>
> Stefan Cars wrote:
>> What is the status of this, Gerald ? Is that implemented yet ??
>>
>> smodeUDatUrl = 4
>>
>>   The session id for the user session will passed as a part of the
>> URL. NOT YET IMPLEMENTED!!
>>
>
> No it's not implemented, but what you want is
>
> smodeUDatParam
>
> (smodeUDatUrl would do something like //path/data.epl)
>
> Gerald
>
>
>>
>> Kind Regards,
>> Stefan Cars
>>
>> -Original Message-
>> From: Gerald Richter [mailto:[EMAIL PROTECTED]
>> Sent: den 2 december 2003 16:20
>> To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
>> Subject: Re: Cookie and Cookieless sessions
>>
>> Hi,
>>
>>>
>>> Basically what I want to do is to have standard cookied sessions,
>>> however if user doesn't support cookies then it falls back to
>>> cookieless sessions.
>>>
>>> Can I
>>> a)  Have both cookie and cookieless sessions running at the same
>>> time - if so how do I configure this.
>>
>> In Embperl 2.0 look at EMBPERL_SESSION_MODE
>>
>>> b)  Optionally pass the session_id as a param - so if there isn't a
>>> cookie, but there is a param then it loads the session using the
>>> param session id.  If so whats the correct name of the session id
>>> (as in ?session_id=sds232sd23dsgrfgf355565)
>>>
>>
>> If you set session_mode correctly Embperl will do this for you
>> automaticly
>>
>> Gerald
>>
>>
>>>
>>> Regards
>>>
>>>
>>> Pete
>>>
>>>
>>> -
>>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>> --
>> Gerald Richter ecos electronic communication services gmbh
>> IT-Securitylösungen * dynamische Webapplikationen * Consulting
>>
>> Post:   Tulpenstrasse 5  D-55276 Dienheim b. Mainz
>> E-Mail: [EMAIL PROTECTED]  Voice:   +49 6133 939-122
>> WWW:http://www.ecos.de/  Fax: +49 6133 939-333
>> --
>>>
>>>   ECOS BB-5000 Firewall- und IT-Security Appliance: www.bb-5000.info
>>>
>> +-
>>
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>
> --
> Gerald Richter ecos electronic communication services gmbh
> IT-Securitylösungen * dynamische Webapplikationen * Consulting
>
> Post:   Tulpenstrasse 5  D-55276 Dienheim b. Mainz
> E-Mail: [EMAIL PROTECTED]  Voice:   +49 6133 939-122
> WWW:http://www.ecos.de/  Fax: +49 6133 939-333
> --
>>
>>   ECOS BB-5000 Firewall- und IT-Security Appliance: www.bb-5000.info
>>
> +-
>
>
> -
> 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]

--
Gerald Richter ecos electronic communication services gmbh
IT-Securitylösungen * dynamische Webapplikationen * Consulting

Post:   Tulpenstrasse 5  D-55276 Dienheim b. Mainz
E-Mail: [EMAIL PROTECTED]  Voice:   +49 6133 939-122
WWW:http://www.ecos.de/  Fax: +49 6133 939-333
--
|
|   ECOS BB-5000 Firewall- und IT-Security Appliance: www.bb-5000.info
|
+-


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



Re: Bytes transfered.

2003-12-27 Thread Gerald Richter
>
> Or is this a totally bad idea and should I convert the apache logfile
> and just translate the index.html?id=p100 into something like
> index.html_page=100?
>

Running a simple Perl script that does the replacement is the easiest
solution.

Another solution is to write a mod_perl log handler. In that log handler you
have all informations from the request and can log them the way you want.
There are several mod_perl log handler already on cpan as an example or take
a look at the mod_perl guide at perl.apache.org

Gerald


--
Gerald Richter ecos electronic communication services gmbh
IT-Securitylösungen * dynamische Webapplikationen * Consulting

Post:   Tulpenstrasse 5  D-55276 Dienheim b. Mainz
E-Mail: [EMAIL PROTECTED]  Voice:   +49 6133 939-122
WWW:http://www.ecos.de/  Fax: +49 6133 939-333
--
|
|   ECOS BB-5000 Firewall- und IT-Security Appliance: www.bb-5000.info
|
+-


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



Re: DBIx::Recordset 0.25 - ok for CPAN?

2003-12-27 Thread Gerald Richter
Hi Terrence,

I have run some quick tests and it seem ok for me to relase it to CPAN.

I have found two minor problems (in today svn version):

1.) Tables where not drop before test
2.) There was a line break in the code for $group

I have fixed these two and commited them to the svn

Please go ahead an release it to CPAN. Please send me a copy so I can put t
on our ftp sever as well.

If there is any trouble releaseing it to CPAN because of the owner, let me
know and I will do it.

I think we should also send anouncements to DBI, Embperl and mod_perl and
mod_perl announce mailing lists.

Thanks for your work

Gerald


Terrence Brannon wrote:
> Well, I have made it back from my train trip and am ready to upload
> 0.25 to CPAN
> if there are no complaints about it.
>
> We can integrate Kee Hinckley's stuff into 0.26 when he gets back from
> his plane trips.
>
>> Please test this before I upload it to CPAN:
>>
>> http://www.urth.org/~metaperl/DBIx-Recordset-0.25.tar.gz
>>
>> It was tested on MySQL, Postgres and SQLite only.
>>
>> I am taking a 4-day train trip tonight so I will not be able to
>> respond to email
>> until 5 or so days from now.
>>
>> It is checked into svn, so patches can be applied.
>>
>>
>> NEW FUNCTIONALITY (Kee Hinckley, Cameron Prince, Terrence Brannon)
>>
>> * Full SQL Query input via the !Query option to Search()
>>
>> * added the '$makesql' flag to Search() so that generated SQL can
>> be returned instead of executed. It will remain undocumented until
>> it is supported for Update(), Delete(), and Insert(). It was added
>> in order that the SQL generated for the test "Order, Group,
>> Append" would pass on Postgres which finds the generated SQL
>> invalid.
>>
>> BUGFIXES (Angus Lees, Terrence Brannon, Gerald Richter)
>>
>> * when building the FROM clause for
>>  LEFT JOINs Recordset placed parentheses around it, like this:
>>
>>  SELECT
>>
>>  dbixrs1.id,dbixrs1.name,dbixrs1.value1,dbixrs1.addon,dbixrs2.value2
>>  FROM (dbixrs1 left join dbixrs2 on dbixrs1.id = dbixrs2.id) WHERE
>> dbixrs1.id IN (2, 5, 10);
>>
>>  but this caused a syntax error in sqlite, so a new leftjoin type
>>  of 4 was introduced to support LEFT JOIN with no parentheses
>>  around the join
>>   * Fixed a bug that cause TableAttr with value zero not to work
>>  correctly. Patch from Rene Seindal
>>
>> * Made sure that filters given by name override filters given by
>> type.
>>
>> * Fixed PreFetchIfExpires() so that it works for a specified time
>> period as
>> well as for a CODE ref
>>
>> * Added support to DBIx::Compat so that the pseudo-type "counter" was
>> converted
>> to SERIAL when DBD::Pg is in use
>>
>>
>> -
>> 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]

--
Gerald Richter ecos electronic communication services gmbh
IT-Securitylösungen * dynamische Webapplikationen * Consulting

Post:   Tulpenstrasse 5  D-55276 Dienheim b. Mainz
E-Mail: [EMAIL PROTECTED]  Voice:   +49 6133 939-122
WWW:http://www.ecos.de/  Fax: +49 6133 939-333
--
|
|   ECOS BB-5000 Firewall- und IT-Security Appliance: www.bb-5000.info
|
+-


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



random error Can't locate object method "init" via package "Embperl::__2

2003-12-27 Thread Aare Vesi
Hi,

Please help...
While using Embperl (latest from CVS + mod_perl latest and perl 5.8.2)
under Embperl::Object

Randomically I get following error:
Error in Perl code: Can't locate object method "init" via package
"Embperl::__2" at /usr/local/lib/perl/5.8.2/Embperl/Object.pm line 280

when I restart apache error goes away for a while. but then suddenly
returns again. I think somethink in my code is causing this, but I don't
have a clue. Debug log shows nothing interesting.


Thanks in advance.


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