How to Authenticate using Cookie ?
Hi, Can some one show me how to use cookie to check valid user ? which module should I use and how to modify httpd.conf. Thank you very much Nguyen
Regex problem
Hi all, Can somebody show me how to use regular expression to subtitute a string with speacial character such as [* , ?] in it ? for example $string = 'test ? test'; $input = 'Start test ? test End'; $change = 'Change'; $input =~ s/$string/$change/g; After change, I expect $input = 'Start Change End' but I never got it. Thanks alot for any help. Nguyen
error from modper ??
Hi, Does some one know this error come from modperl or embperl [3182]ERR: 12: Line 1: File 3182]ERR: 12: Line 1: File /usr/www/clients/microjoin/dynamicupdate/htdocs/admin/text/ open error: Is a directoryApache/1.3.12 (Unix) mod_perl/1.23 HTML::Embperl 1.3b3 [Fri Aug 4 09:14:18 2000] I had a small emperl script in /usr/www/clients/microjoin/dynamicupdate/htdocs/admin/text/ directory. when I run the script, sometime It run fine , sometime I got the above error. Thanks
script run in off line mode
Hi, I check the embperl help section and know that I can post questions in mod_perl mailing list. I installed embperl after modperl and apache. But some how my emperl scripts always run in off line mode. Every time I run the sript from the browser, I have to hit the back button and run again. The first time is never success, the second time is. I checked the log file and get something like this (offline mode: enter name=value pairs on standard input) I try to reinstall embperl but the problem is still the same. Any idea what is causing this to happen? Many thanks for any help. Nguyen
Cookie-based access control
Hi, I try to use the Cookie-based accesss control method in the eagle book. I have 2 servers. server1 serves for ww1.server.com and server2 is for ww2.server.com the httpd.conf file in server1 look like this PerlAccessHandler Apache::TicketAccess PerlSetVar TicketDomain .server.com PerlSetVar TicketSecret http://ww1.server.com/secrets/key.txt ErrorDocument 403 http://ww1.server.com/Login SetHandler perl-script PerlHandler Apache::PTATicketMaster PerlSetVar TicketDomain .server.com PerlSetVar TicketSecret http://ww1server.com/secrets/key.txt PerlSetVar TicketDatabase mysql:mydatabase PerlSetVar TicketTable users:username:password PerlSetVar TicketExpires 240 and httpd.conf file in server2 look like PerlAccessHandler Apache::TicketAccess PerlSetVar TicketDomain .server.com PerlSetVar TicketSecret http://ww1.server.com/secrets/key.txt ErrorDocument 403 http://ww1.server.com/Login When I try to go to http://ww2.server.com/protected2/index.html I always got a message from http://ww1.server.com/Login url Unable to Log InThis site uses cookies for its own security. Your browser must be capable of processing cookies and cookies must be activated. Please set your browser to accept cookies, then press the reload button. What did I do wrong ? In theory, this case should work. Any idea would be appreciated. Nguyen