Rebol Talk Forum  |  REBOL Discussions  |  REBOL Core  |  Topic: Confused about Cookies => Why File I/O?
Pages: [1] Print
Author Topic: Confused about Cookies => Why File I/O?  (Read 472 times)
tim042849
Newbie
*
Offline Offline

Posts: 10


View Profile
Confused about Cookies => Why File I/O?
« on: December 07, 2006, 09:17:46 PM »

Hi:
For those of you who don't know me - I've been doing web programming for over 10 years
and using rebol to do so for 6. I have not used cookies with rebol before, but I have used
cookies in python programming.

I've looked at some of the scripts at rebol.org that work with cookies. Therein comes the
confusion because those I've looked at seem to use file I/O. I've run Sunanda's cookie-example.r
and looked at a couple of others. So why use files? Why is it necessary?

Here's an example that I used for a control panel application I use:
Prior to the printing of the content-type, I executed the following:
print "Set-Cookie: email=^"tim@johnsons-web.com^";^/Set-Cookie: password=mypwdhere;"
After the first evaluation, I then commented out the line above.
By probing system/options/cgi I can see that the cookie strings are persisting over multiple
executions of the script - by both "GET" and "POST" methods.

So why are the scripts that I see at rebol.org using File I/O?

My apologies if I'm missing something here.  Embarrassed
Regards
Tim
Logged

Newbie: False
Coding-Rebol: context[years: 8]
Pages: [1] Print 
Rebol Talk Forum  |  REBOL Discussions  |  REBOL Core  |  Topic: Confused about Cookies => Why File I/O?
Jump to:  

  
Quick Search...

Advanced search
  
Welcome, Guest. Please login or register.
Did you miss your activation email?
December 02, 2008, 08:16:53 AM
Username: Password: Session Length:
  

News: 01-09-08

Alpha version of REBOL 3 has been released!


  
2311 Posts in 595 Topics by 4143 Members
Latest Member: pobbennaFex

  Rebol Talk Forum | Powered by SMF 1.0.9.
© 2001-2005, Lewis Media. All Rights Reserved.

RT design by Defiant Pc