The UK Home Automation Archive

Archive Home
Group Home
Search Archive


Advanced Search

The UKHA-ARCHIVE IS CEASING OPERATIONS 31 DEC 2024


[Message Prev][Message Next][Thread Prev][Thread Next][Message Index][Thread Index]

Re: Another Web xpl question


  • Subject: Re: Another Web xpl question
  • From: John B
  • Date: Sun, 09 Feb 2003 08:23:00 +0000

Hi Tony,

> How do I create a global variable for the session that I can hold the
> currently addressed rio instance in?

You could store it as a session cookie on the client's browser:

To set a cookie containing the session's Rio instance, in your ASP script
put:

Response.Cookies("myRioInstance") = "Rio1"

Then, in any other ASP page throughout the session, to retrieve the Rio
instance, just do:

dim myRio
myRio = Request.Cookies("myRioInstance")

There are other approaches, such as storing session state on the server,
but hopefully cookies should be the easiest to implement.

HTH,

John







xPL Main Index | xPL Thread Index | xPL Home | Archives Home

Comments to the Webmaster are always welcomed, please use this contact form . Note that as this site is a mailing list archive, the Webmaster has no control over the contents of the messages. Comments about message content should be directed to the relevant mailing list.