in reply to Re: delete cookie
in thread delete cookie

yes i set the cookie well, and i can read it in browser, bt the problme is deleting or clearing it. this is it

this is how i set my cookie and its working well.

my $cookie = $cgi->cookie(-name => 'user', -value => 'user', -expires= +> '+1m'); print $cgi->redirect(-location => $nextpage -cookie => $cookie);

and here i read my cookie

$cookie = $cgi->cookie('user'); $page = '#page'; if (! $cookie) { print $cgi->redirect($page); } if ($cookie) { #continue }

everything there is ok, bt the problem is clear the cookie (user)

Replies are listed 'Best First'.
Re^3: delete cookie
by roboticus (Chancellor) on May 11, 2015 at 20:15 UTC

    bigup401:

    I'm afraid I don't understand why you show us the code that works, but don't show the code you need help with. It just makes no sense to me.

    ...roboticus

    When your only tool is a hammer, all problems look like your thumb.

    A reply falls below the community's threshold of quality. You may see it by logging in.