Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: Re: Re: CGI and Redirect/URI/Location

by Hero Zzyzzx (Curate)
on Jun 19, 2001 at 04:14 UTC ( [id://89527]=note: print w/replies, xml ) Need Help??


in reply to Re: Re: CGI and Redirect/URI/Location
in thread CGI and Redirect/URI/Location

I'm confused. You seem to be mixing function and OO calls to CGI. I'm not sure if this is causing your problem, but it might. I've never experienced issues with cookies working with one browser and not the other.

Some things to try:

  1. Use all OO calls to CGI, thusly:
    my $q = new CGI; my $c = $q->Cookie(-name => 'login', -value => $login2, -expires => '+3M', -domain => '.mydomain.com' ); print $q->redirect(-cookie=>$c, -location=>$URL);
  2. I doubt this will mean anything, but I don't think you need the double quotes around $URL.
  3. You can only set a cookie for the domain that the script was requested from. . .as a security measure. If your domain is "foo.com" you can only set a valid cookie for this domain. I think you're aware of that, given the way you set your domain in your cookie. So if your redirect is to a different domain, you can't set a cookie for that domain, only the old one.

Good Luck!

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://89527]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (5)
As of 2025-04-25 16:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.