Alaska Software Inc. - Trying to Logout.
Username: Password:
AuthorTopic: Trying to Logout.
Adelaide LopesTrying to Logout.
on Mon, 06 Feb 2006 15:20:03 +0000
Hello everyone!

I'm working with WAA for some short time and I've found out how to make a
small aplication with a simple login, view the user's data, about that.
This moment I'm trying to make a simple Logout, without sucess.
I'm using:

    oContext:openSession()
    oContext:setCargo( "LOG", cLogin )

in the function that log's in, then:

    oContext:setCargo( "LOG", "" )
    oContext:closeSession()

in the logout function.

I must be doing something wrong or something missing, because when i press
the return button of the Internet Explorer, it returns to the previous users
"rea", where one can do whatever they'ld like, (not very pleasant).

Anyone has an ideia, that can help me?

Regards,
Adelaide
Phil Ide
Re: Trying to Logout.
on Tue, 07 Feb 2006 11:11:00 +0000
Adelaide,

> I'm working with WAA for some short time and I've found out how to make a
> small aplication with a simple login, view the user's data, about that.
> This moment I'm trying to make a simple Logout, without sucess.
> I'm using:
> 
>     oContext:openSession()
>     oContext:setCargo( "LOG", cLogin )
> 
> in the function that log's in, then:
> 
>     oContext:setCargo( "LOG", "" )
>     oContext:closeSession()
> 
> in the logout function.

Firstly, there is no need to set the LOG variable to "" - the closeSession()
method will destroy the entire set of variables stored in the session.

Secondly, you may want to do this in your logout routine:

    oContext:openSession()   get the session for this user
    oContext:closeSession()  destroy the session

HTH

Regards,

Phil Ide

***************************************
* Xbase++ FAQ, Libraries and Sources: *
* goto: http://www.idep.org.uk/xbase  *
***************************************

Bulk trash will be disposed of in incinerators, not compactors. And they
will be kept hot, with none of that nonsense about flames going through
accessible tunnels at predictable intervals.
          [Things I'd do as an Evil Overlord]