Cookies

2000-08-25 Thread Jeff Smelser

How do you set expires in ASP cookies?

I tried, and various other ways too. Even nodeworks.com wouldn't work for
me. Thanks.

$expires=&HTTP::Date::time2str(time()+86400);
$Response->{Cookies}{'username','Expires', '$expires'} =
$Request->Form('username');
$Response->{Cookies}{'password'} = $Request->Form('password');


Jeff






RE: Help Embperl

2000-08-05 Thread Jeff Smelser

No problem:



Jeff's Stock Page



[$ if $ENV{REQUEST_METHOD} eq 'GET' $]
This is a GET request
[$ elsif $ENV{REQUEST_METHOD} eq 'POST' $]
This is a POST request
[$ else $]
This is not GET and not POST
[$ endif $]



Thanks,
Jeff


On Sat, 5 Aug 2000, Jason Bodnar wrote:

> Please send the file for the url you're getting the error with.
> 
> On 05-Aug-2000 Jeff Smelser wrote:
> > I got EMbperl to compile. It when I did make test, everything went great.
> > OK's down the line. I set up apache with:
> > 
> > 
> > SetHandler perl-script
> > PerlHandler HTML::Embperl
> > 
> > 
> > This is what apache says when I restarted it:
> > 
> > [10843]ERR:  25: Line 1: Error 
> > [Sat Aug  5 16:10:00 2000] [notice] Apache/1.3.9 (Unix)  (Red Hat/Linux)
> > mod_perl/1.21 configured -- resuming normal operations
> > 
> > This is what it says when I test is with test.html: 
> > 
> > Bareword found where operator expected at /home/httpd/perl/test.html line
> > 3, near "Jeff's"
> > (Missing operator before Jeff's?)
> > Bareword found where operator expected at /home/httpd/perl/test.html line
> > 5, near "/TITLE>
> >  >   (Might be a runaway multi-line // string starting on line 4)
> > (Missing operator before HEAD?)
> > Scalar found where operator expected at /home/httpd/perl/test.html line 7,
> > at end of line
> > (Missing operator before ?)
> > [Sat Aug  5 16:10:07 2000] [error] syntax error at
> > /home/httpd/perl/test.html line 2, near "HEAD"
> > 
> > What did I miss?
> > 
> > Running embpexec.pl works fine on the same file I am running through
> > apache.
> > 
> > Thanks,
> > Jeff
> > 
> > 
> > 
> 
> -- 
> Jason Bodnar
> [EMAIL PROTECTED]
> 




Help Embperl

2000-08-05 Thread Jeff Smelser

I got EMbperl to compile. It when I did make test, everything went great.
OK's down the line. I set up apache with:


SetHandler perl-script
PerlHandler HTML::Embperl


This is what apache says when I restarted it:

[10843]ERR:  25: Line 1: Error 
[Sat Aug  5 16:10:00 2000] [notice] Apache/1.3.9 (Unix)  (Red Hat/Linux)
mod_perl/1.21 configured -- resuming normal operations

This is what it says when I test is with test.html: 

Bareword found where operator expected at /home/httpd/perl/test.html line
3, near "Jeff's"
(Missing operator before Jeff's?)
Bareword found where operator expected at /home/httpd/perl/test.html line
5, near "/TITLE>