I've been trying to figure out how to clear a cookie from a PC's memory. Currently I'm trying the following code;
my $cookie_user = $IN->cookie (-name => 'user', -value => '', -path => '/' );
# finalise the cookies...
print $IN->header( -cookie => [$cookie_pass, $cookie_user] );
It doesn't seem to be working though. Is there a feature built into CGI::cookie that will let you delete cookies? I've searched high and low on google.com, but all the results seem to only tell you how to write cookies, and not clear them
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!
Code:
my $cookie_pass = $IN->cookie (-name => 'pass', -value => '', -path => '/' ); my $cookie_user = $IN->cookie (-name => 'user', -value => '', -path => '/' );
# finalise the cookies...
print $IN->header( -cookie => [$cookie_pass, $cookie_user] );
It doesn't seem to be working though. Is there a feature built into CGI::cookie that will let you delete cookies? I've searched high and low on google.com, but all the results seem to only tell you how to write cookies, and not clear them
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!