Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search

[REBOL] Re: CGI session variables like in PHP

From: rebol:techscribe at: 7-Oct-2003 14:10

Hi Carlos. Create a session cookie with a unique, random name, and create a temporary file server-side with the same name to hold the session information, including session vaqriables.. That's how PHP does it according to Julie Meloni writing for "Webmonkey" ( in her article "Authenticate and Track Users with PHP". She writes:
a session is an ethereal blob that can hold all sorts of variables and values. This blob of stuff, also known as a session object, has an identification string. The identification string, such as 940f8b05a40d5119c030c9c7745aead9, is sent to the user via a cookie called PHPSESSID. On the server side, a matching temporary file (think of it as the physical representation of the session object) is created with the same name (i.e., 940f8b05a40d5119c030c9c7745aead9). Each session object has variables registered with it. Inside the session file, on the server, the registered variables and their values are kept safe and sound. Since these values and variables are not kept in a database, no additional system resources are required <<<<< Hpe this helps. Elan Carlos Lorenz wrote: