hey all.  I've got a login page which authenticates a user, then needs to set a couple of cookies before redirecting them to a new page.  So, assuming the login was successful, I do this:
  
 $cookie1 = $cgireq->cookie(-name=>'sessionID', -value=>$sid, -expires=>'+24h');
 $cookie2 = $cgireq->cookie(-name=>'customer_id', -value=>$cid, -expires=>'+24h');
 
print $cgireq->redirect(-cookie=>[$cookie1,$cookie2],
       -location=>"/cgi-bin/startshopping.pl",
       -nph=>1 );
 
The problem is that the cookie appears not to be set, i.e., the 'startshopping.pl' script keeps kicking the user back to the login page, as it should if the user was not logged in.
 
I've tried this with both $cgireq->header and $cgireq->redirect, to no avail.  What gives?

Reply via email to