Re: Serious bug, mixing mod-perl content
Basel, Dienstag, 12. März 2002, 19:27:24 . Hello Miroslav Assuming, that you are using a handler, I ask you how you separate each calls to your vhosts? I also assume that the vhosts are on the same Apache runtime? Probably you mix up namespaces ... Best Regards Christian - [EMAIL PROTECTED] - . == beginn original == Date: Dienstag, 12. März 2002, 18:32:57 Subject: Serious bug, mixing mod-perl content It seems that my mod-perl virtual hosts are mixing content :( I don't know why ? I have virthost1 and virthost2 on mod-perl apache, most of the time you get the right content when calling respective virthost but sometimes when you call virthost2 you get response from virt. host 1. This is a rare bug but happens. We're using Mandrake Linux and it's 2 apache's (1 mod-perl enabled and the other without mod-perl - this one uses mod proxy and mod rewrite). Can someone please direct me how can I solve this problem ? - Best regards, Miroslav Madzarevic, Senior Perl Programmer [EMAIL PROTECTED] Mod Perl Development http://www.modperldev.com Telephone: +381 64 1193 501 jamph $_=",,.,,.,,,.,,,.,,,..,,.,,,.,.,,,"; s/\s//gs;tr/,./05/;my(@a,$o,$i)=split//;$_=;tr/~`'"^/0-4/;map{$o .=$a[$i]+$_;$i++}split//;@a=$o=~m!...!g;map{print chr}@a; __DATA__ `~^`~~``^`~`~`^``~`~``''~^'`~^``'``^```~^``'```'~`~ === end original
Re[2]: Single login/sign-on for different web apps?
>>Of course, the best authentication system for banking I've seen is >>from UBS. They send you a scratchlist of around 100 numbers. Every >>time you login you use one of the numbers and cross it off. Very >>slick. > > Does that really work in practice? That sounds really annoying. Is this for > business banking or for retail? How do they get the next 100 numbers to the > user? Do they mail it out when they've used 90? It works, as I'm a customer of UBS. They do it for everybody, business and private. They send the the scratchlist by post, even, registered. When you reach the 80th number, a new list will be automatically sent. BR Christian
Re: Ticket systems
Same and more questions ... > And now second problem. Has anyone modified one of these modules so, > that when user first enters the site he will get a cookie immediately > (with random generated ID) and can walk around there. And if he logs in > then the cookie gets modified accordingly (saying that user is logged > in). I've got the same problem, as I'm using Apache::Session for generic cookie handling. Which is comfortable and on top I've got any session values stored in mySQL table. Then I wanted to build in my old style login,storing an loginflag to the actual session. When a secured page/file/component/location is requested and no loginflag is around he will be promted with a login page. So far so easy. Then I started to think ... a) Is the sessionkey of Apache::Session secure? Can it be tampered? Is some IP init? b) Could I use one of the existing Auth/Ticket modules working in the cookie of Apache::Session ... the same questions. BR Christian
Re: Installing mod_perl with ActiveState
> The installation of mod_perl (from theoryx5.uwinnipeg.ca) via ppm fails when > it attempts to install mod_perl.so to c:\apache root. The default location > for apache when I installed it was c:\program files\apache group\apache. I > followed the instructions and manually copied mod_perl.so to my modules > directory. Does it now fails in Installtion or ... > LoadModule perl_module modules/mod_perl.so > in httpd.conf, which parses okay. ... does it parse OK? I used the above ingredients and the result was OK, from the scratch. I installed it in E:\Server\Apache, so no spaces. But this shouldn't be the problem? LoadModule perl_module modules/mod_perl.so AddModule mod_perl.c CU Christian
Form Reading
Hello This is off topic, thanks for a direct hint to a module or an appropriate mailing list. I want to read an HTML form into an hash. But I don't want to use HTML::Tree or similar DOM Object trees. I need simply all form relevant information as an hash which is human readable. Example: my $formfields = { printorder => ['Name','Request','Newsletter','Message'], Name => { tag => 'input', attr => { value => "bbb", type => "text", style => "width:200", class => "singleinput", size => "30" } }, Request => { tag => 'select', options => [ { value => "casea", selected => 1, label => "xxx" },{ value => "caseb", label => "yyy" },{ value => "casec", label => "zzz" } ], attr => { style => "width:200", multiple => "multiple", class => "singleinput", size => "2" } }, Newsletter => { label => "Newsletter", tag => 'input', attr => { value => "", type => "checkbox", style => "width:22", class => "singleinput", size => "30" } }, Message => { label => "Nachricht", tag => 'textarea', attr => { value => "sdgdsfgdsfg", style => "width:200", class => "singleinput", rows => "5", cols => "28" } } }; I've tried HTML::Form but I found a leek of support to attributes as 'class' or 'onClick'. On the print side i can not access each input reference in a loop. Best Regards Christian
Re: WYSIWYG Template Editor
Basel, Dienstag, 1. Januar 2002, 13:32:54 . *see original email below* Hallo Joachim I use Dreamweaver with HTML::Mason. But none of the Perl based solutions can be seen with data (as far I tested). You only see icons. Right now UltraDev only works withs MS ASP and JSP. I'm happy to hear about other suggestions :-) Best Regards Christian - [EMAIL PROTECTED] - . == beginn original == Date: Dienstag, 1. Januar 2002, 13:13:42 Subject: WYSIWYG Template Editor Happy New Year. Does anybody know a template engine, whose templates can be edited with a "WYSIWYG" editor (favourably dreamweaver) as they will look when filled with example data? Thanx, Joachim -- "... ein Geschlecht erfinderischer Zwerge, die fuer alles gemietet werden koennen."- Bertolt Brecht - Leben des Galilei === end original
Re[2]: Mason vs embperl
>> So I installed and compared. I preferred the syntax of Mason, the >> flexible way to build components, the caching ... it have to be >> said here that I choose Mason ... > > I agree, the caching is very good and one gets up and running in no > time with Mason. However, I find it imposes too much of a coding style > to the programmer : for example, all pages are evaluated inside the > same package and thus one cannot define two "normal" subroutines with > the same name in two different pages. Use the parser new() parameter 'in_package' Extract from the mason manual: "Indicates the name of the package you wish your components to run in. This way different applications or virtual hosts can be run in different name spaces. Default is HTML::Mason::Commands." I simply decided to use subs only in *.pm files as libraries and so using allays the same name for the same functionality. Best Regards Christian - [EMAIL PROTECTED] -
Re: Mason vs embperl
Basel, Dienstag, 18. Dezember 2001, 19:02:12 . *see original email below* Hello Horng-Twu I was evaluating tools like silverstream then I dropped over Mason. I rejoiced a) Perl is my native IT language b) the system is not a blackbox like the products promoted with bells and whistles. After studying the excellent manual I went on a research on similar systems and I dropped over embperl. So I installed and compared. I preferred the syntax of Mason, the flexible way to build components, the caching ... it have to be said here that I choose Mason ... my arguments might be not independent :-) I can say that Mason is fine integrated in mod_perl. I use Dreamweaver for the publishers and the <% and <& commands are properly displayed as ASP-icons. I use it with Modules Apache::Session, Apache::Cookie, Net::SMTP ... Of course Mason-CM is cool! Best Regards Christian - [EMAIL PROTECTED] - . "Is it the idea or the names of it's incarnations, praise that there is mod_perl and Mason|EmbPerl*" a newbie with first productive success. (* many contributors not mentioned here, sorry the list would be far too long ) == beginn original == Date: Dienstag, 18. Dezember 2001, 17:39:32 Subject: Mason vs embperl Hi, I am planning a website and considering either using Mason or using embperl. I already digged into Mason and am reading embperl manual. Can someone shed some light about these two tools with regard to ease of use, current development effort, and the future support level? Thanks, Steve Lihn === end original
Problem with Appache::Cookie -expires
Basel, Sonntag, 25. November 2001, 22:29:49 . *Problem with Appache::Cookie -expires* Environment: Apache 1.3.22 / Perl 5.6.1 / mod_perl 1.26 /HTML::Mason 1.04 on MSWin32 I've tied up the session to MySQL with Apache::Session by running one handler negotiating all the cookies. Some cookies expire some not depending on a 'sessionarea' ... using CGI::Cookie everything is fine. I read when I switch to ... use HTML::Mason::ApacheHandler (args_method=>'mod_perl'); ... I use Apache::Cookie. As long I don't state anywhere -expires everything is the same and fine. As soon I write ... my $cookie = Apache::Cookie->new ( $r, -name => "AF_SID_$sessionarea", -value => $session->{$sessionarea}->{_session_id}, -path => "/"); $cookie->expires($sessiontimeout) if $sessiontimeout; $cookie->bake; ... the cookie is properly written on the disk, but seems to have problems to be retrieved. I used ... my $cookies = Apache::Cookie->new($r)->parse; or my $cookies = Apache::Cookie->fetch; ... but with both, as soon the -expires is called !nada!niet! no cookie existing in HTTP_COOKIE. I don't know if I should look deeper into HTML::Mason::ApacheHandler, which serves the $r, or into Apache::Cookie ... Apache::MyConfig? And all this without an error in any log? :-) it's said it is faster ... I already spent a day on it Best Regards C.Hauser - [EMAIL PROTECTED] - .