Fujian,
If you put a UserSessionObject, and fail to get it later, that needs
investigation. It is obvious that the session broke in between and you are
working on a new session. Usually this can happens with custom hrefs or
custom frames if you forget to carry over the SPIDERSESSION_NVP stuff. And
that is bound to give the SecurityException if you have page continuity
defined.
Regarding use of instance variables:
You can have instance variables myVar1, myVar2 in pgTargetPage.
In the onButtonEvent() of pgSourcePage, you can do:
pgTargetPage targetPage = (pgTargetPage) CSpider.getPage("pgTargetPage");
targetPage.myVar1 = "whaever";
targetPage.load();
Hope this is clear enough. If not you are welcome to ask.
Regards,
Aby
> -----Original Message-----
> From: [EMAIL PROTECTED] [SMTP:[EMAIL PROTECTED]]
> Sent: Wednesday, May 26, 1999 7:06 AM
> To: [EMAIL PROTECTED]
> Subject: Re: [ND] SecurityCheckFailureEvent
>
>
> "Mathew, Aby" <[EMAIL PROTECTED]> wrote:
> >Couple of things:>
> >1. Check the PreviousPages property of your target page. If it is empty
> >there should not be any problem. (That would be leaving a back door open
> for
> >entering the application, which may make things a little easier during
> >development)
> >If you have defined a list of previous pages, and try to come there from
> >elsewhere this is exactly the error you get.
>
> At first, I didnot specify anything in the PageFlow field of the TARGET
> page. But I could not get UserSessionObjects created
> in the SOURCE page. I want to use this UserSessionObject to check if user
> get here through the LOGIN page. If not then
> redirect user to the LOGIN page. I did this in the onBeforeLoadEvent of
> the TARGET page but it failed to get the
> UserSessionObject. Then I specify the SOURCE page in the PageFlow (pages
> preceding this page) of the TARGET page
> and got the SecurityCheckFailureEvent. The value of the ComboBox is not
> the only thing I want to put in UserSessionObjects.
> Sorry for not clearly explain the whole situation before.
>
>
> >
> >2.You don't need to use UserSessionObject for passing a value from one
> page
> >to another which you are going to load as part of the same web event
> >sequence. Instead you can get a reference to the target page and set an
> >instance variable. (This is not related to your problem.)
>
> I check the CSpPage API but can not get idea how to set instance variable
> with a reference to a page.
> Could you tell me how to do that?
>
>
> Thanks,
> -Fujian
>
> >
> >Aby
> >
> >> -----Original Message-----
> >> From: Curt Springer [SMTP:[EMAIL PROTECTED]]
> >> Sent: Tuesday, May 25, 1999 8:59 AM
> >> To: [EMAIL PROTECTED]
> >> Subject: Re: [ND] SecurityCheckFailureEvent
> >>
> >> This is not default processing.
> >>
> >> Sounds like somehow or other (intentionally or not) you have employed
> the
> >> ND security object. Maybe try turning it off. I've never used it, so
> >> will
> >> leave further advice to others.
> >>
> >> -- Curt Springer
> >> Team ND
> >>
> >>
> >> At 05:03 AM 5/25/99 -0800, [EMAIL PROTECTED] wrote:
> >> >Hello,
> >> >
> >> >The whole situation is described below:
> >> >
> >> >I designed an appliecation to manage customer account. For the Edit
> >> function, I give the user a menu, which composed of
> >> >one button (leads user to another page for editing customer account)
> and
> >> a
> >> ComboBox where user can select which
> >> >account of customer he wants to edit. The whole picture is like this:
> >> EditButton ComboBox.
> >> >
> >> >When user press the EditButton, an onWebEvent is triggered, and the
> value
> >> of the ComboBox is stored into a
> >> >UserSessionObject which will be retrieved in the editing page so that
> the
> >> cutomer account will be displayed in that page.
> >> >
> >> >But strangely everytime I press the Edit button, I got
> >> "SecurityCheckFailureEvent: Session continuity has failed for page
> >> >'PcissaManageAccountsMainPage' => FAIL".
> >> >
> >> >Does anybody have idea of how is this happened?
> >> >
> >> >Thanks,
> >> >-Fujian
>
_________________________________________________________________________
For help in using, subscribing, and unsubscribing to the discussion
forums, please go to: http://www.netdynamics.com/support/visitdevfor.html
For dire need help, email: [EMAIL PROTECTED]