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