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: Tony T
  • Date: Sun, 09 Feb 2003 08:30:00 +0000

> > 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.

Ahh, cookies....
That's a great idea :-)

Many thanks, John

Regards
Tony







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.