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
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
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
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!