Just wondering.. is it possible to set a cookie, and right after, redirect to another URL?
i.e
print $IN->header( -cookie => $cookie );
print $IN->redirect ($goto);
The problem I am having, is that as soon as the cookie is set, a header must have been set? It just doesn't seem to want to redirect to the new URL :(
Is there a way around this?
Cheers
Andy (mod)
andy@ultranerds.co.uk
IMPORTANT: I've now moved to ultranerds.co.uk, and the .com will no longer work!
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package (plugins total "value" $3,325 & rising, for just $350)| GLinks ULTRA Package PRO (plugins total "value" $5,625 & rising, for just $500)
Support Forum | Links SQL Plugins | DMOZ Dumps | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Compare our different Plugin packages *new* Free CSS Templates
i.e
Code:
my $cookie = $IN->cookie( -name => "PPC3".$ID, -value => "TRUE", -expires => "+1h"); print $IN->header( -cookie => $cookie );
print $IN->redirect ($goto);
The problem I am having, is that as soon as the cookie is set, a header must have been set? It just doesn't seem to want to redirect to the new URL :(
Is there a way around this?
Cheers
Andy (mod)
andy@ultranerds.co.uk
IMPORTANT: I've now moved to ultranerds.co.uk, and the .com will no longer work!
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package (plugins total "value" $3,325 & rising, for just $350)| GLinks ULTRA Package PRO (plugins total "value" $5,625 & rising, for just $500)
Support Forum | Links SQL Plugins | DMOZ Dumps | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Compare our different Plugin packages *new* Free CSS Templates

