Advertisement

01.12.2001 at 09:10AM PST, ID: 20031317
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

9.4

Writing a persistant cookie

Asked by rcates_ in Perl Programming Language

-----I previously asked this question---

I am writing a cookie like this:

#Setting the cookie for the dns#
print "Set-Cookie:$cookie2=$dns2";

I can see the cookie when I call the script directly but not when I call it with SSI. I want to be able
to pull the cookie into an order form with javascript, but the order form doesn't see it.

I think I need a "persistant" cookie but I don't know how to write one.

---------------------------
After many back and forth responses I felt I did not get my answer and slated the question for deletion.

I have since found the answer using cgi but with one final little glitch
-----------------------------

 the script looks like this:

use CGI;
     
my $cgiobj=new CGI;
#Only need line below if CGI.pm module is earlier than version 2.57
#$cgiobj->use_named_parameters;

#store CGI parameter list in a hash
#my %prefs=$cgiobj->Vars;

my $cgiobj=new CGI;

#construct cookie object
my $cookie=$cgiobj->cookie(
     -name=>"$cookie2",
    -value=>"$dns2",
    -expires=>'+6M',
    -path=>'/',
    -domain=>'.ptelproducts.com'
   );
   
#output cookie header to browser
print $cgiobj->header(-cookie=>$cookie);


#print "Content-type:text/html\n\n";#
print "$cookie_sheet\n";
print "<br>$number";

exit;


---My output looks like this

slimscience_dns=4444%0A

it should be:

slimscience_dns=4444

So, my question is:

what is this?  %0A
Where is it coming from?
and How do I get rid of it?

I'm so close, please help

RCates



Start Free Trial
[+][-]01.12.2001 at 09:36AM PST, ID: 106854

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]01.21.2001 at 12:49PM PST, ID: 137895

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]03.19.2001 at 08:37PM PST, ID: 5942349

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: Perl Programming Language
Sign Up Now!
Solution Provided By: maneshr
Participating Experts: 2
Solution Grade: A
 
 
[+][-]04.09.2003 at 03:10PM PDT, ID: 8303220

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32