For Programmers: Free Programming Magazines  


Home > Archive > Smalltalk > July 2007 > looking for Login code in VS









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author looking for Login code in VS
Marcelo

2007-07-19, 7:13 pm

Hello,

Does anybody have a sample code or application how to add login to my app?.
I think I have to use some singleton object called session to keep the
connected user and other global objects. but I can't find code about how
implement the login.
I'm using Visual Smalltalk 3.0.1.


In advance, thanks a lot for any help.

Regards,
Marcelo


Henk verhoeven

2007-07-20, 7:15 pm

Marcelo wrote:
> Hello,
>
> Does anybody have a sample code or application how to add login to my app?.
> I think I have to use some singleton object called session to keep the
> connected user and other global objects. but I can't find code about how
> implement the login.
> I'm using Visual Smalltalk 3.0.1.


Hi Marcello,

I dont see the problem, isn't a login just a matter of opening a dialog
with two entryfields and an OK button? Or are you using VS to act as a
web server?

Greetings,

Henk Verhoeven,
www.metaclass.nl.


Marcelo

2007-07-21, 4:19 am

Hi Henk,

Thanks for your answer.
Actually I mean how to keep information about the logged in user. I have a
Class named Operator and then the operator can generate tickets (This is a
Toll System homework for the university), so I need to know at anytime who
is the user, in wich toll booth number is, in wich plaza, and I don't know
how to keep this in the model, I mean how to implement a session in
smalltalk or whether is commonly used another way to keep this information.

regards,
Marcelo

"Henk verhoeven" <news1@phpPeanuts_RemoveThis.org> escribió en el mensaje
news:f7rga8$oja$1@news1.zwoll1.ov.home.nl...
> Marcelo wrote:
>
> Hi Marcello,
>
> I dont see the problem, isn't a login just a matter of opening a dialog
> with two entryfields and an OK button? Or are you using VS to act as a web
> server?
>
> Greetings,
>
> Henk Verhoeven,
> www.metaclass.nl.
>
>



CK

2007-07-21, 8:09 am

Words to the wise, "Marcelo" <marcelo39AThotmail.com> wrote:

>Hi Henk,
>
>Thanks for your answer.
>Actually I mean how to keep information about the logged in user. I have a
>Class named Operator and then the operator can generate tickets (This is a
>Toll System homework for the university), so I need to know at anytime who
>is the user, in wich toll booth number is, in wich plaza, and I don't know
>how to keep this in the model, I mean how to implement a session in
>smalltalk or whether is commonly used another way to keep this information.


You dont need a session, this is not a web application. So, basically,
you just set a instance variable user, with a couple of other
variables to describe the other attributes you need to keep.

User logs on, you fill all the variables necessary, if he logs out,
you clear the variables again.

The code you have to write yourself.
--
Claus Dragon <clauskick@mpsahotmail.com>
=(UDIC)=
d++ e++ T--
K1!2!3!456!7!S a27
"Coffee is a mocker. So, I am going to mock."

- Me, lately.
Marcelo

2007-07-21, 7:09 pm

Thanks Claus, you´re right, It's more easy than what I thought...


regards,
Marcelo

"CK" <claus@ultima-dragons.org> escribió en el mensaje
news:7dk3a35219guebuqabdvjothpg2tacu3ko@
4ax.com...
> Words to the wise, "Marcelo" <marcelo39AThotmail.com> wrote:
>
>
> You dont need a session, this is not a web application. So, basically,
> you just set a instance variable user, with a couple of other
> variables to describe the other attributes you need to keep.
>
> User logs on, you fill all the variables necessary, if he logs out,
> you clear the variables again.
>
> The code you have to write yourself.
> --
> Claus Dragon <clauskick@mpsahotmail.com>
> =(UDIC)=
> d++ e++ T--
> K1!2!3!456!7!S a27
> "Coffee is a mocker. So, I am going to mock."
>
> - Me, lately.



Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com