Results 1 to 2 of 2
  1. #1
    Join Date
    Mar 2004

    Unhappy Unanswered: problem with retrieval of cookies

    I think I have managed to set the cookies for my web page, as it displayed:

    Set-Cookie: parent=zali; path=/cgi-bin/upsr/; expires=Sat, 01-May-2004 02:37:51 GMT Date: Wed, 28 Apr 2004 02:37:51 GMT Content-Type: text/html; charset=ISO-8859-1

    BUT, I can't retrieve the cookies within the same page and the rest of the web pages. I have tried the following code:

    my $query = new CGI;
    my $student_login = $query->cookie('student');

    but still, cannot retrieve. I don't know why.

    Please HELP...

  2. #2
    Join Date
    Jan 2004
    Have you given the cookie a name?
    How do you set this cookie?

    You can't set a cookie and retrieve it in the same page. You just can retrieve it in the following pages! - The German Perl-Community

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts