in reply to delete cookie

Since cookie manipulation actually takes place on the browser, in response to HTTP headers, there might be a conflict between your redirect and set-cookie. Use a browser-side debugger to see exactly what HTTP headers and status-codes are being received, and exactly how the browser is reacting to them. (You can see the cookies, too.)

Replies are listed 'Best First'.
Re^2: delete cookie
by bigup401 (Pilgrim) on May 11, 2015 at 19:12 UTC

    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)

      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.