Jump to content

How I finish browser session


Guest

Recommended Posts

Message from: "Jason Reid"

 

Hi Oscar

 

I think you can just close the main form can't you ?

 

--

Jason Reid

Systems Developer

Compucorp Ltd.

www.compucorp.co.uk

 

 

 

 

"Oscar Flor" wrote in message

news:mEOt0I9NLHA.7696@anaxavps227.anaxa.local...

> Mr Farshad:

>

> How I can do to finish a browser session?

>

> Application.Terminate, terminate server application.

>

> Best Regards

> --

>

.

 

Link to comment
Share on other sites

Message from: "Farshad Mohajeri"

 

"Jason Reid" wrote in message

news:ogT0$y%23NLHA.1604@anaxavps227.anaxa.local...

> Hi Oscar

>

> I think you can just close the main form can't you ?

>

> --

>

 

Yes, calling

 

MainForm.Close;

 

will terminate the application.

 

In future I may add some additional mechanisms to directly terminate a

session.

 

 

.

 

Link to comment
Share on other sites

Message from: "Oscar Flor"

 

Farshad Mohajeri wrote:

 

>

> "Jason Reid" wrote in message

> news:ogT0$y%23NLHA.1604@anaxavps227.anaxa.local...

> > Hi Oscar

> >

> > I think you can just close the main form can't you ?

> >

> > --

>

> Yes, calling

>

> MainForm.Close;

>

> will terminate the application.

>

> In future I may add some additional mechanisms to directly terminate

> a session.

 

Mr. Farshad:

 

Yes, this was precisely my problem, if I close the main form (in my

case the login form) the application close completly, and I have not

chance to load the Menu MainForm.

 

Apparently, when the main form closes all application closes to,

without take care if they are other form open. In this case not act

like VCL does.

--

 

.

 

Link to comment
Share on other sites

Message from: "Farshad Mohajeri"

 

Oscar,

 

> Yes, this was precisely my problem, if I close the main form (in my

> case the login form) the application close completly, and I have not

> chance to load the Menu MainForm.

>

 

In Web mode if you close the MainForm, current session will end.

That is the default behaviour in uniGUI.

MainForm is where your web application starts and ends.

 

> Apparently, when the main form closes all application closes to,

> without take care if they are other form open. In this case not act

> like VCL does.

 

Yes, as I told it is by design. MainForm is the master form of your project.

Closing it ends the current session.

You can hide your MainForm instead of closing it if it is what you needed.

 

Can you explain what you exactly want to achieve?

 

 

.

 

Link to comment
Share on other sites

Message from: "Oscar Flor"

 

Farshad Mohajeri wrote:

 

> Oscar,

>

> > Yes, this was precisely my problem, if I close the main form (in my

> > case the login form) the application close completly, and I have not

> > chance to load the Menu MainForm.

> >

>

> In Web mode if you close the MainForm, current session will end.

> That is the default behaviour in uniGUI.

> MainForm is where your web application starts and ends.

>

> > Apparently, when the main form closes all application closes to,

> > without take care if they are other form open. In this case not act

> > like VCL does.

>

> Yes, as I told it is by design. MainForm is the master form of your

> project. Closing it ends the current session. You can hide your

> MainForm instead of closing it if it is what you needed.

>

> Can you explain what you exactly want to achieve?

 

I have a Login form, if they is successfully, must show Main Menu Form.

In this case frmLogin is not needed anymore. If I close it. The

application closes to.

 

I'm do MainForm.Show inside the Accept.OnClick button of frmLogin form

and on the OnShow of MainForm i'm acctually hide Login form, but want

to close it.

 

I want to close Login form without close entire application.

 

As Login form is my first form they are registered as the main form.

 

Regards

--

 

.

 

Link to comment
Share on other sites

Message from: "Jason Reid"

 

Hi Oscar

 

I'm doing a very similar thing, but I've used mainform as my main form and

I'm doing fLogin.ShowModal on the onShow event of the mainform.

 

As Farshad said, the MainForm is the beginning and the end of the

application, so I designed around it.

 

 

--

Jason Reid

Systems Developer

Compucorp Ltd.

www.compucorp.co.uk

 

 

 

 

"Oscar Flor" wrote in message

news:tb7wM5jPLHA.7696@anaxavps227.anaxa.local...

> Farshad Mohajeri wrote:

>

>> Oscar,

>>

>> > Yes, this was precisely my problem, if I close the main form (in my

>> > case the login form) the application close completly, and I have not

>> > chance to load the Menu MainForm.

>> >

>>

>> In Web mode if you close the MainForm, current session will end.

>> That is the default behaviour in uniGUI.

>> MainForm is where your web application starts and ends.

>>

>> > Apparently, when the main form closes all application closes to,

>> > without take care if they are other form open. In this case not act

>> > like VCL does.

>>

>> Yes, as I told it is by design. MainForm is the master form of your

>> project. Closing it ends the current session. You can hide your

>> MainForm instead of closing it if it is what you needed.

>>

>> Can you explain what you exactly want to achieve?

>

> I have a Login form, if they is successfully, must show Main Menu Form.

> In this case frmLogin is not needed anymore. If I close it. The

> application closes to.

>

> I'm do MainForm.Show inside the Accept.OnClick button of frmLogin form

> and on the OnShow of MainForm i'm acctually hide Login form, but want

> to close it.

>

> I want to close Login form without close entire application.

>

> As Login form is my first form they are registered as the main form.

>

> Regards

> --

>

.

 

Link to comment
Share on other sites

Message from: "Oscar Flor"

 

Jason Reid wrote:

 

> Hi Oscar

>

> I'm doing a very similar thing, but I've used mainform as my main

> form and I'm doing fLogin.ShowModal on the onShow event of the

> mainform.

>

> As Farshad said, the MainForm is the beginning and the end of the

> application, so I designed around it.

 

Mr Jason:

 

I was do the same, but for some reason the MainForm appears above my

Login form.

 

My MainForm have windowsstate := wsmaximized.

 

Regards

 

--

 

.

 

Link to comment
Share on other sites

Message from: "Farshad Mohajeri"

 

"Oscar Flor"

>

> I was do the same, but for some reason the MainForm appears above my

> Login form.

 

Interesting. I will look into this.

 

Actually, I use a uniTimer with RunOnce=True to activate a LoginForm.

 

 

.

 

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...