I don't have an exception problem. My guess is that you
are doing something to attempt to use this session again and
that causes your exception.
In one project, I have the code in a page which has no
object and does not include a SPIDERSESSION tag.
This is the page I go to when the user clicks EXIT. The page
has one method:
//[[SPIDER_EVENT<this_onBeforeLoadEvent>
public int this_onBeforeLoadEvent(CSpPageEvent event)
{
CSpider.removeUserSession();
return (PROCEED);
}
//]]SPIDER_EVENT<this_onBeforeLoadEvent>
In another project, I have the code in the login page, so that if
they come back for some reason to the login page, I clear their
session and create a new one. See below.
//If they are entering again, let's clean things up.
//Check if a unique name already exists.
CSpValue temp = CSpider.getUserSessionObject("UNIQNM");
if (temp != null)
{
CSpider.removeUserSession();
CSpider.makeNewUserSession(CSpider.getProject("faclog"));
}
Marilyn Beaudreau wrote:
> When I use CSpider.removeUserSession() I get an uncaught exception error.
> What exception should I try (no pun intended) to catch?
>
> thx,
> - M
>
> -----Original Message-----
> From: Mary Hill [SMTP:[EMAIL PROTECTED]]
> Sent: Thursday, April 08, 1999 11:41 AM
> To: Marilyn Beaudreau
> Cc: '[EMAIL PROTECTED]'
> Subject: Re: [ND] What's the ND4 comparable statement?
>
> CSpider.removeUserSession();
>
> Marilyn Beaudreau wrote:
>
> > removeSessionId(CSpider.getSessionId()); was a valid
> statement in
> > ND3.x. Does anyone know the ND4 statement to perform the same
> operation?
> > I've tried many variations of removeUserSession to no avail.
> >
> > Anyone else migrate this over to ND4 yet?
> >
> > thx,
> > - Marilyn
> >
> _________________________________________________________________________
> >
> > 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]
>
> --
> --------------------------------------------------------
> Mary Hill 2919 Taubman Library
> [EMAIL PROTECTED] 1135 E. Catherine
> University of Michigan Ann Arbor, MI
> Med School Information Systems 48109-0726
> 734-763-6752
--
--------------------------------------------------------
Mary Hill 2919 Taubman Library
[EMAIL PROTECTED] 1135 E. Catherine
University of Michigan Ann Arbor, MI
Med School Information Systems 48109-0726
734-763-6752
_________________________________________________________________________
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]