When moving from project to project one can maintain session information 
by checking the following:

The subordinate page do not have the islogin and isfirstpage properties 
set to true.  If they do, then ND will create a new sessionID when they are called.

The calling page must submit a sessionID along with the url.  An easy way to
guarantee this is to use the load function within a buttons method and load the
new project followed by the page.

             //[[SPIDER_EVENT<onButton1WebEvent>
        public int Button1_onWebEvent(CSpWebEvent event)
        {
              return(CSpider.getPage ("prjReports.MainPage").load());
        }
        //]]SPIDER_EVENT<onButton1WebEvent>

If the call to new project is performed with an URL then this simple script will 
execute the same call.
<script>
function SubmitForm(buttonName)
{
 document.forms[0].action = document.forms[0].action + buttonName;
 document.forms[0].submit();
 return;
}
</script>

<A href='javascript:SubmitForm (".Button1_onWebEvent(Button1)");' >Reports</A>

When selected, the URL will send the session information along with all webvars as 
though the button had
Been pushed.  Be sure to hide the button by setting it's visible property to false 
before
displaying.

Beware, some older browsers have been known to have problems when
trying to assign a value to the action property.



"LadyNaureen" <[EMAIL PROTECTED]> wrote:
>>Dear ND Experts,
>
>Hi,
>
>My application is divided into five parts. for each part we have a separate project.
         The main project which also provides the menu, load pages of different 
projects.
         The problem is that the main project is puting some information for other 
projects
         to access like user id , password etc., in session objects and I am not able 
to access
         these session objects placed by main project in other projects.
>Any help will be greatly apreciated.
>Thanks in advance.
>
>Regards,
>LadyNaureen

_________________________________________________________________________

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]

Reply via email to