Debugging Tips (Was Re: Cookies, CGI::App, and mod_perl)

2003-08-03 Thread Larry Leszczynski
ed on, it's actually much easier to read with hex mode turned off.) A tip for cookie testing when using PlugProxy (or similar proxying tools, I suppose): Generally you need to make sure you're making requests against the correct domain name for your browser to handle the cookies correct

Re: Cookies, CGI::App, and mod_perl

2003-08-03 Thread Tom Hukins
On Fri, Aug 01, 2003 at 01:14:44PM -0400, Perrin Harkins wrote: > On Fri, 2003-08-01 at 13:04, petersm wrote: > > When running under mod_perl the cookie is no > > where to be seen. > > Do some debugging. Look at the traffic going back and forth. Test it > with GET or lynx. See if the cookie hea

Re: Cookies, CGI::App, and mod_perl

2003-08-01 Thread Perrin Harkins
[ Please keep it on the list... ] On Fri, 2003-08-01 at 14:06, petersm wrote: > Perrin Harkins <[EMAIL PROTECTED]> wrote > > Do some debugging. Look at the traffic going back and forth. Test > > it with GET or lynx. See if the cookie header is being sent. > > Thanks for the suggestion. I used

Re: Cookies, CGI::App, and mod_perl

2003-08-01 Thread Perrin Harkins
es CGI to set > the cookie and CGI should set it correctly if I'm running under mod_perl right? Right, although I don't think C::A knows or cares at all about cookies. This is just between you and CGI.pm. > I've seen a lot on forums to use Apache::Cookie, but how do I do tha

Cookies, CGI::App, and mod_perl

2003-08-01 Thread petersm
Hello all, I am using CGI::App 3.1, Apache 1.3.27 and mod_perl 1.28 Here's the problem. I'm trying to set a cookie (using CGI's cookie method and C::A's header_props method). When the site was running non mod_perl there was no problem. The cookie was set. When running under mod_perl the cookie is

Re: cookies and POST in pure MP2?

2003-07-23 Thread Stas Bekman
Carl Brewer wrote: Egor Korablev wrote: Hi How can I write and get cookies and get POST data (text) under MP2 handler without using apache::compat? You can either use libapreq, which is _almost_ there :) or hack yuor own bits up cribbed from CGI.pm or the test stuff in the mp2 test suite

Re: cookies and POST in pure MP2?

2003-07-23 Thread Carl Brewer
Egor Korablev wrote: Hi How can I write and get cookies and get POST data (text) under MP2 handler without using apache::compat? You can either use libapreq, which is _almost_ there :) or hack yuor own bits up cribbed from CGI.pm or the test stuff in the mp2 test suite. That's what I&#x

cookies and POST in pure MP2?

2003-07-23 Thread Egor Korablev
Hi How can I write and get cookies and get POST data (text) under MP2 handler without using apache::compat? Thx ps sorry for my english

Re: Getting list of all cookies available?

2003-07-19 Thread Iphigenie
>Is there a way to get the list of available cookies from Apache::ASP >or mod_perl? Now I am not the most expert at mod_perl, still a newbie myself Here's how i have done i when i needed to see the whole list to find out what was going on with a cookie not working use Apache:

Getting list of all cookies available?

2003-07-18 Thread greg
I'm using Apache 1.3.27, mod_perl 1.28, and Apache::ASP 2.53 (+ mod_ssl, all on cygwin). I know how I can get and set cookies in Apache:ASP, this is no problem. What I am trying to figure out is how to get a list of cookies that are available. Is there a way to get the list of available co

Re: cookies

2003-07-16 Thread Dennis Stout
WOOO! I went to the ttms site, logged in, AND IT AUTHNTICATED ME AND GAVE ME PAGES!! :D Aight, is on me tonight :D I can't beleive it! 3 weeks on this bloody thing and I got it to finally Authenticat me =D Course, I had to disable things in order to get it

Re: cookies

2003-07-16 Thread Dennis Stout
> Cool dude. Now if you know why $r->pnotes() isn't working under > apache/modperl .27 you'll make my day! Got some source code to show me what you're doing with it? Otherwise I'll just have to cut and paste the mod_perl API book to you ;) hehehehe. Dennis

Re: cookies

2003-07-16 Thread Mark Maunder
in, > like stout.dyndns.org. :P > > Dennis > > P.S. Does anyone else try to use Outlook Express like vi and get odd error > messages after a days worth of coding? > > - Original Message - > From: "Mark Maunder" <[EMAIL PROTECTED]> > To: "

Re: cookies

2003-07-16 Thread Dennis Stout
the domain to something more sane again, like stout.dyndns.org. :P Dennis P.S. Does anyone else try to use Outlook Express like vi and get odd error messages after a days worth of coding? - Original Message - From: "Mark Maunder" <[EMAIL PROTECTED]> To: "Dennis Stout&

Re: cookies

2003-07-16 Thread Mark Maunder
>From perldoc CGI::Cookie # fetch existing cookies %cookies = fetch CGI::Cookie; $id = $cookies{'ID'}->value; #You're doing $cookies->value; ID == the name that you used when you set the cookie. On Wed, 2003-07-16 at 21:27, Dennis Stout wrote: > *pounds head against br

Re: cookies

2003-07-16 Thread Dennis Stout
turn to me the cookie itself? Thanks. Dennis - Original Message - From: "Dennis Stout" <[EMAIL PROTECTED]> To: "Dennis Stout" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Wednesday, July 16, 2003 20 13 Subject: Re: cookies > Well I'll be d

Re: cookies

2003-07-16 Thread Dennis Stout
Well I'll be damned. My computer at home does the cookie thing perfectly well. My workstation at work does not do cookies. So my mod_perl creation is working fine as far as getting the cookies. YAY FOR WIN2K DOMAINS AND ADMIN WHO USE HELP DESK TECHS TO PROGRAM TICKETING SYSTEMS FO

Re: cookies

2003-07-16 Thread Dennis Stout
> > One possibility: Check the -path option. It's supposed to set it to '/' > > by default if you dont specify it, but it doesn't. I discovered this > > about 20 minutes ago with a similar bug. So manually specify something > > like: > > my $cookie = Apache::Cookie->new($r, > >

Re: cookies

2003-07-16 Thread Mark Maunder
Forgot to include the list. -Forwarded Message- > From: Mark Maunder <[EMAIL PROTECTED]> > To: Dennis Stout <[EMAIL PROTECTED]> > Subject: Re: cookies > Date: 16 Jul 2003 14:19:27 -0700 > > Hi Dennis, > > One possibility: Check the -path option.

cookies

2003-07-16 Thread Dennis Stout
Okay, so technically this isn't really "mod_perl" speific... but the cookie is being set with mod_perl and it's a huge mod_perl program being affected by this:) I have a cookie, the domain is set to .stout.dyndns.org (with the leading .). I set the cookie just fine now (thanks to those helping m

RE: mod_perl 2.0 and cookies

2003-07-11 Thread Randy Kobes
On Fri, 11 Jul 2003, Ross Matt-QMR000 wrote: > I would really like to be removed from this list but the > un-scribe does not work for me. the problem is the mail address > that I used way back when has been aliases to different > address. Try sending a message to [EMAIL PROTECTED] for some sugges

Re: mod_perl 2.0 and cookies

2003-07-11 Thread Randy Kobes
hat "bootstrap" was (I > think that was it). Apache::Cookie made inserting cookies in > mod_perl 1.0 so easy which in turn made life easier for > programming. However I have scoured the documentation on how to > insert a cookie into the header and the only thing I could come

Re: mod_perl 2.0 and cookies

2003-07-11 Thread Dennis Stout
t was it). Apache::Cookie > made inserting cookies in mod_perl 1.0 so easy which in turn made life > easier for programming. However I have scoured the documentation on how > to insert a cookie into the header and the only thing I could come up > with is that you use a filter to do it. So

mod_perl 2.0 and cookies

2003-07-11 Thread Jamie Krasnoo
inserting cookies in mod_perl 1.0 so easy which in turn made life easier for programming. However I have scoured the documentation on how to insert a cookie into the header and the only thing I could come up with is that you use a filter to do it. Somehow I don’t think that this is right and I am

RE: Convert Cookies-->HTTP Request Headers?

2003-04-06 Thread Kruse, Matt
Title: RE: Convert Cookies-->HTTP Request Headers? >From: Brian Reichert >Ok, I'm confused: the cookies are already in the request header, >and you want to 'convert' them into a request header? Well, yes. Two reasons: 1) In the real production environment,

Re: Convert Cookies-->HTTP Request Headers?

2003-04-05 Thread Michael Robinton
: >> >> For every request to Apache: >> 1. Parse the cookie coming in via the request header >> 2. Pull out each value (ex: NAME=bob;TITLE=boss) >> 3. Convert them to HTTP Request Headers >> >Ok, I'm confused: the cookies are already in the request head

Re: Convert Cookies-->HTTP Request Headers?

2003-04-05 Thread Juha-Mikko Ahonen
PerlInitHandler is an alias PerlHeaderParserHandler in .htaccess files. > 2. Writing some sample code :) package Your::SSOHandler; use strict; use Apache::Constants qw(:common); use Apache::Cookie; sub handler { my $r = shift; my $in = $r->headers_in; return DECLINED u

Re: Convert Cookies-->HTTP Request Headers?

2003-04-04 Thread Brian Reichert
to Apache: > 1. Parse the cookie coming in via the request header > 2. Pull out each value (ex: NAME=bob;TITLE=boss) > 3. Convert them to HTTP Request Headers Ok, I'm confused: the cookies are already in the request header, and you want to 'convert' them into

Convert Cookies-->HTTP Request Headers?

2003-04-04 Thread Kruse, Matt
Title: Convert Cookies-->HTTP Request Headers? I have a unique need purely for testing purposes. I'm not very familiar (yet) with mod_perl handlers in Apache, so I've had a rough time getting anything going. Here is my goal: For every request to Apache:   1. Parse the cookie

RE: mod_perl not sending cookies

2003-03-13 Thread Tom Murphy
Andrew, Ya need to remember to CC the group as well. Copied from an oldish Netscape spec: -- domain=DOMAIN_NAME When searching the cookie list for valid cookies, a comparison of the domain attributes of the cookie is made with the

RE: mod_perl not sending cookies

2003-03-13 Thread Tom Murphy
Usually when I have this problem the path and/or domain is incorrect. Try it without either. Tom > -Original Message- > From: Andrew Fritz [mailto:[EMAIL PROTECTED] > Sent: Thursday, March 13, 2003 12:25 PM > To: [EMAIL PROTECTED] > Subject: mod_perl not sending cook

Re: mod_perl not sending cookies

2003-03-13 Thread Richard Clarke
PROTECTED]> Sent: Thursday, March 13, 2003 8:24 PM Subject: mod_perl not sending cookies > I'm using Apache:AuthCookie. I have set up a basic test site. It appears > that AuthCookie never send the cookie even though the call to: > $r->err_headers_out->add("Set-C

mod_perl not sending cookies

2003-03-13 Thread Andrew Fritz
I'm using Apache:AuthCookie. I have set up a basic test site. It appears that AuthCookie never send the cookie even though the call to: $r->err_headers_out->add("Set-Cookie" => $cookie); is there. If I modify the call to include a simple cookie: $r->err_headers_out->add("Set-Cookie" => 'a=b'

Re: reading cookies from mod_perl HTTP request handlers

2003-01-15 Thread Vishal Verma
On Wed, 2003-01-15 at 14:24, Geoffrey Young wrote: > if you want to force %ENV to be setup earlier, try calling > > $r->subprocess_env; > > in a void context before checking %ENV - it used to segfault for me, but the > docs says it should work. > This worked for me! Thanks a million! -vish

Re: reading cookies from mod_perl HTTP request handlers

2003-01-15 Thread Geoffrey Young
But, I'm not able to see that cookie when I print $ENV{'HTTP_COOKIE'} within in header_parse_handler. %ENV is setup during the fixup phase, so it hasn't been populated yet. mod_perl docs say that that you can examine request headers in the PerlHeaderParserHandler. yes, using something like

reading cookies from mod_perl HTTP request handlers

2003-01-15 Thread Vishal Verma
Hi, I'm unable to access/read cookies from incoming HTTP requests using mod_perl HTTP request handlers.Here's what my relevant apache config section looks like PerlHeaderParserHandler MyModule::header_parse_handler My browser already has a cookie named 'foo' w

RE: [mp2]Cookies?

2002-12-05 Thread Beau E. Cox
Hi Stas - OK! Will do. Aloha => Beau. -Original Message- From: Stas Bekman [mailto:[EMAIL PROTECTED]] Sent: Thursday, December 05, 2002 4:07 PM To: Beau E. Cox Cc: Randy Kobes; Modperl Subject: Re: [mp2]Cookies? Beau E. Cox wrote: > Hi Randy - > > Sorry, I should ha

Re: [mp2]Cookies?

2002-12-05 Thread Stas Bekman
Beau E. Cox wrote: Hi Randy - Sorry, I should have been more explicit. I am trying to use Apache::Cookie. AFAIK, Apache::Cookie won't work under mp2, because Apache::Request wasn't ported yet. Trying using CGI::Cookie for now, as it has the same API and implemented in pure perl. Notice that

RE: [mp2]Cookies?

2002-12-05 Thread Beau E. Cox
e/_small t _est.pm - not found. I have the newbie blues Aloha => Beau. -Original Message- From: Randy Kobes [mailto:[EMAIL PROTECTED]] Sent: Thursday, December 05, 2002 2:40 PM To: Beau E. Cox Cc: Modperl Subject: Re: [mp2]Cookies? On Thu, 5 Dec 2002, Beau E. Cox wrote: >

Re: [mp2]Cookies?

2002-12-05 Thread Randy Kobes
On Thu, 5 Dec 2002, Beau E. Cox wrote: > Hi - > > I can't get cookies to work on AP/MP 2. Even in > compat mode. I'm not sure if this is a mod_perl, > apache, or a my stupidity question, but I'm posting it here > anyway. Are you trying a module, or a home-

[mp2]Cookies?

2002-12-05 Thread Beau E. Cox
Hi - I can't get cookies to work on AP/MP 2. Even in compat mode. I'm not sure if this is a mod_perl, apache, or a my stupidity question, but I'm posting it here anyway. I've searched the archives, CPAN, etc. and can't seem to find the issue addressed. If I'm askin

Re: cookies and IE

2002-10-03 Thread Jean-Michel Hiver
> Wouldn't be the first time I've been wrong. I do know that I was > seeing inconsistent behavior with cookies not being saved in a > redirect page (mostly IE PC, but not 100% of the time), but I didn't > spend any time worrying about it because of the previous m

Re: cookies and IE

2002-10-02 Thread Kee Hinckley
een wrong. I do know that I was seeing inconsistent behavior with cookies not being saved in a redirect page (mostly IE PC, but not 100% of the time), but I didn't spend any time worrying about it because of the previous messages I remembered. A quick check of my mailbox shows a discus

Re: cookies and IE

2002-10-02 Thread Alan
On Wed, Oct 02, 2002 at 08:30:54PM +0200, Per Einar Ellefsen wrote: > At 20:12 02.10.2002, Alan wrote: > >On Wed, Oct 02, 2002 at 01:21:49PM -0400, Geoffrey Young wrote: > >> so, it's not really a bug if you dig down into the docs and examples. > >> looks like a feature, though :) > > > >Agreed..

Re: cookies and IE

2002-10-02 Thread Per Einar Ellefsen
At 20:12 02.10.2002, Alan wrote: >On Wed, Oct 02, 2002 at 01:21:49PM -0400, Geoffrey Young wrote: > > so, it's not really a bug if you dig down into the docs and examples. > > looks like a feature, though :) > >Agreed... more of a 'gotcha' though, ready to bite people in the butt. >Personally I t

Re: cookies and IE

2002-10-02 Thread Alan
On Wed, Oct 02, 2002 at 01:21:49PM -0400, Geoffrey Young wrote: > so, it's not really a bug if you dig down into the docs and examples. > looks like a feature, though :) Agreed... more of a 'gotcha' though, ready to bite people in the butt. Personally I think it might make more sense to do a ch

Re: cookies and IE

2002-10-02 Thread Geoffrey Young
to the docs and examples. looks like a feature, though :) I can't think of a reason why you'd want a literal in the expires field, but I don't use cookies all that much, so maybe there are some cases where it's desirable. maybe $cookie should be undef, or the cookie should default to browser-session-only if -expires doesn't follow the standard format? maybe that's a question for [EMAIL PROTECTED] --Geoff

Re: cookies and IE

2002-10-02 Thread Alan
GMT and caused the cookie to be expired as it was sent. IE > did not accept the cookie at all. However once the time was set > correctly the cookie worked correctly. Nope... one of the versions of IE that I was running was on the same machine (running through crossover office). Looks l

Re: cookies and IE

2002-10-02 Thread Nicholas Studt
> Alan wrote [ 01 October 2002 at 03:09 pm ] > > On Tue, Oct 01, 2002 at 11:30:59AM -0700, Alan wrote: > > Turns out the issue was the 'expires' tag... IE wouldn't set the cookie > until it was set to '+1d' If setting the expires tag to +1d fixed the problem you may want to look at the time on

Re: cookies and IE

2002-10-02 Thread Per Einar Ellefsen
m setting a cookie and then doing a redirect as follows: > > > > This must come up once every few months. I'd complain about that > > fact, but the irony is that just last week I couldn't figure out why > > a new site I was working on wasn't setting cookies in IE

Re: cookies and IE

2002-10-02 Thread Sven Geisler
lem with Apache::Cookie and > > >IE. > > > > > >I'm setting a cookie and then doing a redirect as follows: > > > > This must come up once every few months. I'd complain about that > > fact, but the irony is that just last week I couldn'

Re: cookies and IE

2002-10-01 Thread Sven Geisler
home/alan/code/rubberoven/mod_perl/Rubberoven/Dealer.pm >line 139. > Expires=Tue, 01 Oct 2002 18:30:31 GMT at >/home/alan/code/rubberoven/mod_perl/Rubberoven/Dealer.pm line 139. > > This is the same that is printed out when a working browser gets cookies > se

Re: cookies and IE

2002-10-01 Thread Alan
gt; This must come up once every few months. I'd complain about that > fact, but the irony is that just last week I couldn't figure out why > a new site I was working on wasn't setting cookies in IE and I'd > done the same thing I'd read about a dozen

Re: cookies and IE

2002-10-01 Thread Kee Hinckley
ny is that just last week I couldn't figure out why a new site I was working on wasn't setting cookies in IE and I'd done the same thing I'd read about a dozen times. IE doesn't reliably set cookies on a refresh. I believe the only solution is to rearchitect t

Re: cookies and IE

2002-10-01 Thread Alan
On Tue, Oct 01, 2002 at 11:30:59AM -0700, Alan wrote: > Hi folks... I'm having a bit of a weird problem with Apache::Cookie and > IE. > > I'm setting a cookie and then doing a redirect as follows: > > my $c = Apache::Cookie->new( $r, > -name => 'userdata', > -value => $cookie, >

cookies and IE

2002-10-01 Thread Alan
01 Oct 2002 18:30:31 GMT at /home/alan/code/rubberoven/mod_perl/Rubberoven/Dealer.pm line 139. This is the same that is printed out when a working browser gets cookies set. I've played around with the security settings, and even at the lowest setting, with IE set to prompt for any cooki

Apache::Cookies - problems with cookies

2002-07-28 Thread Ross Becker
Hi there folks, I'm just getting back into some mod_perl after a fairly lengthy absence, and I'm running into some troubles with cookies. Basic summary- I'm trying to set a session ID in a cookie, and it works only if I do not include an expiration time. Details: --

Re: Weird problem with cookies on Netscape with apache running a virtualhost

2002-07-12 Thread Chris Pizzo
Doh! Thanks that's it! - Original Message - From: "___cliff rayman___" <[EMAIL PROTECTED]> To: "Chris Pizzo" <[EMAIL PROTECTED]> Cc: "Charles" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Friday, July 12, 2002 5:10 PM Subj

Re: Weird problem with cookies on Netscape with apache running a virtualhost

2002-07-12 Thread darren chamberlain
* Chris Pizzo <[EMAIL PROTECTED]> [2002-07-12 17:02]: > This works but I need to set multiple cookies. Im doing this: > > my $c = new CGI::Cookie(-name => 'SID', -value => 'stuff', -expires > => '+6M'); > my $cc = ne

Re: Weird problem with cookies on Netscape with apache running a virtualhost

2002-07-12 Thread ___cliff rayman___
d be easy to try. > > > $r->cgi_header_out('Location',"mypage.html"); > $r->send_http_header; > > This only sets one of the cookies ($c). How do I set multiple cookies? -- ___cliff [EMAIL PROTECTED]http://www.genwax.com/

Re: Weird problem with cookies on Netscape with apache running a virtualhost

2002-07-12 Thread Chris Pizzo
- Original Message - From: "Charles" <[EMAIL PROTECTED]> To: "Chris Pizzo" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Friday, July 12, 2002 1:51 PM Subject: RE: Weird problem with cookies on Netscape with apache running a virtualhost

RE: Weird problem with cookies on Netscape with apache running a virtualhost

2002-07-12 Thread Charles
using. 2) You may have inconstant privacy settings on your browser which can cause your browser to reject cookies from untrusted sites. Check with http://www.w3.org/TR/P3P/ to learn about setting up your site's privacy settings. Charles -Original Message- From: Chris Pizzo [mailto:[EMAI

Re: Weird problem with cookies on Netscape with apache running avirtualhost

2002-07-12 Thread Ged Haywood
Hi there, On Fri, 12 Jul 2002, Chris Pizzo wrote: > This might be a little off topic. Not if it's the result of a mod_perl upgrade. :) > I recently installed apache 1.3.26 with modperl 1.26. [snip] > try to retieve or write cookies to a netscape > browser from the virtualho

Weird problem with cookies on Netscape with apache running a virtualhost

2002-07-12 Thread Chris Pizzo
This might be a little off topic. I recently installed apache 1.3.26 with modperl 1.26. I run a virtual host seconady website. When I try to retieve or write cookies to a netscape browser from the virtualhost URL it doesn't work. cookies work fine on the main server. cookies work fine on

Re: Setting Cookies

2002-06-13 Thread ___cliff rayman___
dule sets a few cookies that expire 24 hrs after they are > set. Upon each request the validity of the cookies is checked, and in > case of an expired cookie, the user is redirected to the login page to > resubmit username/password again. A request with a fully qualified URL, > example: h

Setting Cookies

2002-06-13 Thread Rasoul Hajikhani
Hello folks, Yesterday I posted a question about PerlTransHandler and received a lot of responses. Thanks to all of you who replied. However, my problem persists. I try to be more precise in explaining the problem today. My login module sets a few cookies that expire 24 hrs after they are set

Re: Porting to mod_perl and cookies are breaking. Why?

2002-06-10 Thread Per Einar Ellefsen
change it (ie switch to a > > >different user). > > >Everything else appears to be working fine. > > > > If you're saying that $ENV{HTTP_COOKIE} is empty, you should set > > "PerlSetupEnv On" in your Location section. See > > http://perl.apach

Re: Porting to mod_perl and cookies are breaking. Why?

2002-06-10 Thread Mark Korey
E} is empty, you should set > "PerlSetupEnv On" in your Location section. See > http://perl.apache.org/release/docs/1.0/guide/config.html#PerlSetupEnv > > Could we see your code (an excerpt showing the problem)? You might be doing > something wrong when trying to set cookie

Re: Can't set multiple cookies?

2002-06-10 Thread Ken Miller
Last confirmation: 1.3.25-dev does indeed work fine. I've got cookies flying everywhere! Thanks guys! -klm. - Original Message - From: "Ken Miller" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, June 07, 2002 3:45 PM Subject: RE: Can'

Re: Porting to mod_perl and cookies are breaking. Why?

2002-06-09 Thread Per Einar Ellefsen
empty, you should set "PerlSetupEnv On" in your Location section. See http://perl.apache.org/release/docs/1.0/guide/config.html#PerlSetupEnv Could we see your code (an excerpt showing the problem)? You might be doing something wrong when trying to set cookies. Furthermore, you should r

Porting to mod_perl and cookies are breaking. Why?

2002-06-09 Thread Mark Korey
Hi, We're in the process of setting up mod_perl on a site which uses cookies to perform user authentication. Everything worked fine before mod_perl, but now the cookie is not set when we check for it. I've searched the web & "Developer's Cookbook", but can't f

RE: Can't set multiple cookies?

2002-06-07 Thread Ken Miller
bject: Re: Can't set multiple cookies? On Fri, Jun 07, 2002 at 12:32:56PM -0500, Dave Rolsky wrote: > On Fri, 7 Jun 2002, Ken Miller wrote: > > > Ok, so continuing down the path of a single sign-on system, I've completed a > > rough framework, and it works fine. Howev

Re: Can't set multiple cookies?

2002-06-07 Thread Balazs Rauznitz
t; segregate the various bits of information into different cookies. > > Unfortunately, setting multiple cookies doesn't seem to be working. Here > > are the outbound headers obtained via $r->as_string: > > > > Set-Cookie: ACS_UID=miller; path=/ > > Set-C

Re: Can't set multiple cookies?

2002-06-07 Thread Dave Rolsky
On Fri, 7 Jun 2002, Ken Miller wrote: > Ok, so continuing down the path of a single sign-on system, I've completed a > rough framework, and it works fine. However, I thought it might be nice to > segregate the various bits of information into different cookies. > Unfortunately,

Can't set multiple cookies?

2002-06-07 Thread Ken Miller
Ok, so continuing down the path of a single sign-on system, I've completed a rough framework, and it works fine. However, I thought it might be nice to segregate the various bits of information into different cookies. Unfortunately, setting multiple cookies doesn't seem to be working.

Re: login.pl not sending cookies via POST?

2002-05-23 Thread Brian Reichert
On Thu, May 23, 2002 at 11:21:31AM -0400, Fran Fabrizio wrote: > > > > > >(I haven't re-tested Apache::AuthCookieDBI.) > > > >I have no idea why POST _doesn't_ work, mind you... > > > > For what it's worth, my setup with AuthCookieDBI works just fine with POST. I agree that is _should_; I've wri

Re: login.pl not sending cookies via POST?

2002-05-23 Thread Fran Fabrizio
> > >(I haven't re-tested Apache::AuthCookieDBI.) > >I have no idea why POST _doesn't_ work, mind you... > For what it's worth, my setup with AuthCookieDBI works just fine with POST. -Fran

login.pl not sending cookies via POST?

2002-05-22 Thread Brian Reichert
I have tried two different Apache::AuthCookie subclasses: Apache::AuthTicket 0.31 Apache::AuthCookieDBI 1.18 Apache::AuthCookie comes with an example login.pl, as well as does Apache::AuthCookieDBI. The symptom I was seeing: my browser would submit the form generated by login.pl: [Wed Ma

Apache::AuthCookieDBI not sending cookies?

2002-05-21 Thread Brian Reichert
I've pawed though the archives, to no avail... I've almost, but not quite, have Apache::AuthCookieDBI working for me. The symptom I'm seeing (to my eye) is that my browser is never getting cookies sent back to it, even if I hand login.pl a valid user/password. (So I infer from

Re: Any known gotchas with sending cookies?

2002-05-01 Thread karnurme
7;headers_out'; # From Apache::Cookie documentation: # $cookie->bake is same as $r->err_headers_out->add("Set-Cookie" => $cookie->as_string); # Guide: You should use err_headers_out() and not headers_out() # when you want to send cookies in the

Re: Any known gotchas with sending cookies?

2002-04-29 Thread Daisuke Maki
hmm, I still can't$B!!(Bget it to work, but it somehow works under LWP. the following code actually gets the cookie correctly, and no bogus sessions are created in my server. any ideas?? use strict; use LWP::UserAgent; my $ua = LWP::UserAgent->new(); $ua->cookie_jar({ file => "$ENV{ HOME }/cook

Any known gotchas with sending cookies?

2002-04-29 Thread Daisuke Maki
I'm really lost with this... I'm trying to set a session cookie from PerlAccessHandler. I'm basically doing (simplified code): my $cookie_jar = Apache::Cookie->fetch my $session_id = $cookie_jar->{ session }->value; if( !session_active( $session_id ) ) { my $session_obj = create_ses

RE: Cookies and IE in mod_perl

2002-03-27 Thread Rob Bloodgood
> I've determined that it isn't the redirect causing the cookies not > to be set. If I take out the redirect, and just try to set a cookie > w/o a redirect, it still doesn't set the cookies in IE. Does M$ > have any docs on how IE6 handles cookies that I can look thi

Re: Cookies and IE in mod_perl

2002-03-24 Thread Balazs Rauznitz
On Sun, Mar 24, 2002 at 01:44:51PM -0500, Jesse and Rebecca Stay wrote: > I've determined that it isn't the redirect causing the cookies not to be set. > If I take out the redirect, and just try to set a cookie w/o a redirect, it > still doesn't set the cookies in IE.

Re: Cookies and IE in mod_perl

2002-03-24 Thread Michael Robinton
On Sat, 23 Mar 2002, Jesse and Rebecca Stay wrote: > Ok - I got rid of the Apache::Cookie stuff, and am now doing things manually, > but it still doesn't generate a cookie in IE. It still works in Netscape. I > get a redirect, but no cookie. Here is my code: > > my $r = Apache->request;

Re: Cookies and IE in mod_perl

2002-03-24 Thread Jesse and Rebecca Stay
I've determined that it isn't the redirect causing the cookies not to be set. If I take out the redirect, and just try to set a cookie w/o a redirect, it still doesn't set the cookies in IE. Does M$ have any docs on how IE6 handles cookies that I can look this up on? On Sa

Re: Cookies and IE in mod_perl

2002-03-23 Thread Cees Hek
Some browsers don't accept cookies sent allong with a redirect header. A simple workaround is to leave your cookie in the header, but move the redirect to a META HTTP-EQUIV tag in a blank HTML document. I'm not sure if IE 6.0 suffers from this but I suspect that this is your pr

Re: Fw: Re: Cookies and IE in mod_perl

2002-03-23 Thread Dzuy Nguyen
There are different security levels that must be set.  You can also specifically tell the browser to accept all cookies from a particular domain.  There is an article on MS site about this.  I forgot what it was. You can probably search for it on google. Frank Wiles wrote: [EMAIL PROTECTED

Re: Cookies and IE in mod_perl

2002-03-23 Thread Jesse and Rebecca Stay
Eric Frazier wrote: > Strong suggestion. Look at an existing cookie that works in IE whatever, > copy it, then look at the header that Apache::Cookie is making. > This oop cookie crap really bugs me since a cookie is just a stupid header > line, not that big of a deal to parse, or writ

Re: Cookies and IE in mod_perl

2002-03-23 Thread Jesse and Rebecca Stay
the domain > doesn't do anything either. > > On Saturday 23 March 2002 06:44 pm, Frank Wiles wrote: > > On Sat, 23 Mar 2002 18:52:14 -0500 Jesse and Rebecca Stay > > <[EMAIL PROTECTED]> wrote: > > > Has anyone had any issues in getting cookies to work with IE

Re: Cookies and IE in mod_perl

2002-03-23 Thread Jesse and Rebecca Stay
t didn't work either. Adding the domain doesn't do anything either. On Saturday 23 March 2002 06:44 pm, Frank Wiles wrote: > On Sat, 23 Mar 2002 18:52:14 -0500 Jesse and Rebecca Stay <[EMAIL PROTECTED]> wrote: > > Has anyone had any issues in getting cookies to wo

Fw: Re: Cookies and IE in mod_perl

2002-03-23 Thread Frank Wiles
On Sat, 23 Mar 2002 18:52:14 -0500 Jesse and Rebecca Stay <[EMAIL PROTECTED]> wrote: > Has anyone had any issues in getting cookies to work with IE using mod_perl? > I have tried using both CGI::Cookie and Apache::Cookie, and in both instances > it works just fine under Netscap

Cookies and IE in mod_perl

2002-03-23 Thread Jesse and Rebecca Stay
Has anyone had any issues in getting cookies to work with IE using mod_perl? I have tried using both CGI::Cookie and Apache::Cookie, and in both instances it works just fine under Netscape, but on IE it doesn't even try to set the cookie. Any ideas? -Jesse Stay

Re: Cookies and redirects

2002-03-13 Thread Enrico Sorcinelli
On Tue, 12 Mar 2002 16:23:57 +0100 Axel Andersson <[EMAIL PROTECTED]> wrote: > Hello, > I'm having trouble with both setting a cookie and redirecting the user to > another page at the same time. It would appear the cookie is only sent > when a normal header is sent by server. > > If I do the fol

Re: Cookies and redirects

2002-03-12 Thread Hans Poo
El Mar 12 Mar 2002 11:23, Axel Andersson escribió: > Hello, > I'm having trouble with both setting a cookie and redirecting the user to > another page at the same time. It would appear the cookie is only sent > when a normal header is sent by server. > > If I do the following (having baked the coo

Re: Cookies and redirects

2002-03-12 Thread Geoffrey Young
> Geoff: I think I did this with my own module with no success... I'd end > up with an extra set of headers, if I was _lucky_... perhaps that is due to a general misunderstanding of err_headers_out - they are sent _even_ on Apache errors (of which REDIRECT is considered one), not _only_ on err

Re: Cookies and redirects

2002-03-12 Thread Issac Goldstand
Geoffrey Young wrote: >Axel Andersson wrote: > >>Hello, >>I'm having trouble with both setting a cookie and redirecting the user to >>another page at the same time. It would appear the cookie is only sent >>when a normal header is sent by server. >> > >this is a common problem - you have to add t

Re: Cookies and redirects

2002-03-12 Thread Issac Goldstand
Well, I ran into this problem a while back... I solved it by baking my cookies and sening a Refresh: header to the browser. The format is the same as the more popularly used META tag. (eg "Refresh: $time;url=$url") For example, to immediately redirect from /foo to /bar while setting

Re: Cookies and redirects

2002-03-12 Thread Geoffrey Young
Axel Andersson wrote: > > Hello, > I'm having trouble with both setting a cookie and redirecting the user to > another page at the same time. It would appear the cookie is only sent > when a normal header is sent by server. > this is a common problem - you have to add the cookie to the err_head

Cookies and redirects

2002-03-12 Thread Axel Andersson
Hello, I'm having trouble with both setting a cookie and redirecting the user to another page at the same time. It would appear the cookie is only sent when a normal header is sent by server. If I do the following (having baked the cookie first), where $r is the Apache->request() object:

  1   2   3   4   >