Thanks buddy, I am clear with it now.

With Best Regards, 

Karthikeyan S 

-----Original Message-----
From: JupiterHost.Net [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, November 16, 2005 11:42 PM
To: beginners@perl.org
Subject: Re: cookies

Hello,

> # animal is an existing cookie with value as 'lion'
> 
> my $animal = cookie('animal'); 
> 
> # now $animal gets 'lion'
> 
>  
> 
> # now assign 'tiger' to animal 
> 
> my $cookiereplace = "Set-Cookie: animal = tiger;\n"; 
> 
> print $cookiereplace
> 
> # assignment done
> 
>  
> 
> my $animal_new = cookie('animal'); 
>  
> 
> .....
> 
> # Question : Now what does $animal_new contain?

lion, because:

  1) you just gave the browser new stuff  but [did|could] not do 
anything to fetch the new data.

  2 you have not even done that yet since the header isn't fully sent...

> 
> .....
> 
>  
> 
> print header;
> 
>  
> 
> my $animal_very_new = cookie('animal'); 
> 
>  
> 
> .....
> 
> # Question : Also, what does $animal_very_new contain?

Same as above.

Search google for how cookies and HTTp headers work, its all independent

of what langauge you use to set_ and get_ the data...

Its how and when you fetch and send headers and what the webserver has 
forom your browser at what point.

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>



--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


  • RE: cookies S, karthik \(IE03x\)

Reply via email to