SPUG: ie and cookies (solved)
Alan
alan at ufies.org
Tue Oct 1 17:10:42 CDT 2002
On Tue, Oct 01, 2002 at 11:15:48AM -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,
> -expires => '1d',
> -path => '/dealers'
> );
>
> $r->content_type('text/html');
> $c->bake;
> $r->header_out("Refresh"=>"0;url=/dealers$request_uri");
> $r->no_cache(1);
> $r->send_http_header;
> $r->print( print_refresh_page_content() );
Turns out the problem was the expires tag... ie wouldn't set the cookie
until it was set to '+1d'.
Weird.
alan
--
Alan "Arcterex" <alan at ufies.org> -=][=- http://arcterex.net
"I used to herd dairy cows. Now I herd lusers. Apart from the isolation, I
think I preferred the cows. They were better conversation, easier to milk, and
if they annoyed me enough, I could shoot them and eat them." -Rodger Donaldson
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
POST TO: spug-list at pm.org PROBLEMS: owner-spug-list at pm.org
Subscriptions; Email to majordomo at pm.org: ACTION LIST EMAIL
Replace ACTION by subscribe or unsubscribe, EMAIL by your Email-address
For daily traffic, use spug-list for LIST ; for weekly, spug-list-digest
Seattle Perl Users Group (SPUG) Home Page: http://seattleperl.org
More information about the spug-list
mailing list