in reply to cookies not getting setup

You have diagnosed the problem quite well already:

But the problem is either the cookies are not getting set up or they are not getting retrieved.

Cookies are stored in your browser(s). Find out where exactly.

Have you checked that your script sends the cookie header?

Your way of getting at the cookies via raw_fetch is not what the documentation says, maybe there is a problem.

I recommend the HTTP Live Headers and/or a network sniffer to check what is actually being sent to and from the browsers to better find out where the problems lie.

Replies are listed 'Best First'.
Re^2: cookies not getting setup
by need_help21 (Novice) on Dec 04, 2007 at 07:28 UTC
    Thanks! The cookie is getting printed on the browser but where it is stored i am not sure.. its not there in browser cookies. i am returned nothing on retrieval.

      If the cookie is not stored in your browser, then that's a problem with your browser. Have you tried turning off all anti-spyware stuff, all browser plugins and such? Have you tried with alternative browsers, like lynx or WWW::Mechanize to see whether they accept the cookie?

      How did you see that "The cookie is getting printed on the browser" ?

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

      Try this (in Firefox): Tools->Options...->Privacy->Cookies Tab->View Cookies button.

      In the list you must find your server domain name and cookies which are set by this server (you can use Search field at the top).

      If you can't find your cookies than maybe you did't send cookies header correct (maybe you print them after \n\n?). You can use LiveHTTPHeader Extension with Firefox to see which info your browser get from server.