Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6840765
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T23:53:02+00:00 2026-05-26T23:53:02+00:00

I have a site on CGI and working fine yesterday but suddenly its cookie

  • 0

I have a site on CGI and working fine yesterday but suddenly its cookie stop working. I am unable to set cookie and get cookie in my script. below is my code.

To set cookie

#!/usr/bin/perl
use CGI::Carp qw (fatalsToBrowser);
use CGI;
require "cookie.lib";
&SetCookies('V', $EncUID);

To get cookie

#!/usr/bin/perl
use CGI::Carp qw (fatalsToBrowser);
use CGI;
require "cookie.lib";
&GetCookies();
my $UID = $Cookies{"V"};

Please Help me regarding this.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T23:53:02+00:00Added an answer on May 26, 2026 at 11:53 pm

    Whoa, it’s suddenly like 199x all over. Replace cookie.lib with CGI::Cookie.

    #!/usr/bin/perl
    use CGI::Carp qw(fatalsToBrowser);
    use CGI;
    use CGI::Cookie qw();
    
    print CGI::header(-cookie => [CGI::Cookie->new(-name => 'V',-value => $EncUID)]);
    

    #!/usr/bin/perl
    use CGI::Carp qw(fatalsToBrowser);
    use CGI;
    use CGI::Cookie qw();
    
    my %cookies = CGI::Cookie->fetch;
    my $UID = $cookies{'V'}->value;
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

My site was working fine until I followed this guide, http://www.howtoforge.com/how-to-set-up-apache2-with-mod_fcgid-and-php5-on-ubuntu-9.10 to set up
I have successfully integrated PayPal. All is working fine. But I want my form
i'm using Moscow ML combined with CGI. I have a site that calculates simple
I have site I am working on and the images take forever to load,
For example I have site http://localhost/site In IIS I set that 404 error causes
Here is the site mock-up I'm working on for my job: http://dev.arm.gov/~noensie/dqhands/cgi-bin/explorer . I'm
I have the following, simplest Perl CGI script: use strict; use warnings; use CGI();
Many people have asked about Rails hosting on this site, but I'm not familiar
I've been able to get my shopping cart working fine with PayPal when it's
I have written a Perl CGI script which fetches an html page from a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.