Submitted by sean cull on Sep 6, 2010 5:22:31 PM

Scoped Variable in XPages

can you update the link under the requestScope section please, I don't think it is helpful, thanks sean

Submitted by Oliver Klein Cedros on Oct 6, 2009 10:15:20 AM

applicationScope Bug

We had a big problem here with the XPages applicationScope:

It was NOT equal (key, value) in the same application (.nsf) on different machines.

What we basically did was create some XPage with an applicationScope printout and opened it on different machines.

The outputs where different ...

After some brainstorming we found out, that the applicationScope seems to be "cached" by the name of the URL.

So basically

/NotesDev/Dev/Test.nsf/Test.xsp

ist a different applicationScope from

/notesDev/dev/test.nsf/test.xsp

Guys. Major flaw here! equalsignorecase is your friend.

Submitted by Jo Grant on Mar 5, 2009 11:59:38 AM

Scopes scoped to app

All the scope variables are limited to the application they are used in. I.e. if you set sessionScope in an XPage in Foo.nsf, and you look at the value in an XPage in Bar.nsf, it will not be the same.

A session is typically ended when the browser closes. So if you are browsing between applications in a single browser, when you close that browser, the session to both will end.

If, however, you are using two separate browsers, then you can expire different depending on which browser is closed.

Submitted by Matt Buchanan on Dec 19, 2008 6:20:11 AM

sessionScope availability and expiry...

A couple of stupid questions :) - is the sessionScope available over multiple applications? i.e. if you leave one nsf and access another completely separate one in the same session, will the sessionScope object follow you to the new application?

And if there is a sessionScope object per application, do the objects expire as sessions to each application expire, or do they all only expire with the user's session?