two webclient solution with one expired page

Forum to discuss the Web client version of Servoy.

two webclient solution with one expired page

Postby Harjo » Wed Dec 11, 2013 9:45 pm

HI,

I have two webclients solutions. one is the total backend, and one is just an optimized solution, for phone & tablet.
so far so good. By the admin-page you can set an (custom) expired page, where the user will end-up, when the session is expired or, or when you kill the session from the servoy-admin page.

The problem is, that you can set this expired page, just globally, over the whole server, not per solution!
Our expire page, contains code, to re-login into the solution, but how do I know, from which solution they come?

Any one else done this, our has a workaround?
Harjo Kompagnie
ServoyCamp
Servoy Certified Developer
Servoy Valued Professional
SAN Developer
Harjo
 
Posts: 4321
Joined: Fri Apr 25, 2003 11:42 pm
Location: DEN HAM OV, The Netherlands

Re: two webclient solution with one expired page

Postby jcompagner » Thu Dec 12, 2013 10:50 am

if a page (better said, the session) is really expired... (so you really shut down the client completely from the admin page)
how do we know which solution it was in?? That state is gone, you just killed that state.

There is just a request coming to the server of a specific url which doesn't map on anything anymore on the server so the server can't say you have to go to X or Y.
Johan Compagner
Servoy
User avatar
jcompagner
 
Posts: 8833
Joined: Tue May 27, 2003 7:26 pm
Location: The Internet

Re: two webclient solution with one expired page

Postby Harjo » Thu Dec 12, 2013 11:13 am

Johan, I believe, if you shutdown the webclient from the servoy-admin page, the onSolutionClose of the client is fired, right?
Is that something we can use?
Harjo Kompagnie
ServoyCamp
Servoy Certified Developer
Servoy Valued Professional
SAN Developer
Harjo
 
Posts: 4321
Joined: Fri Apr 25, 2003 11:42 pm
Location: DEN HAM OV, The Netherlands

Re: two webclient solution with one expired page

Postby jcompagner » Thu Dec 12, 2013 11:20 am

no, because you just do that on the server side. That is then running without any request from the client.
the onSolutionClose just runs on the server and then the solution/client is closed, then a request from the client comes in and the solution/client is gone
Johan Compagner
Servoy
User avatar
jcompagner
 
Posts: 8833
Joined: Tue May 27, 2003 7:26 pm
Location: The Internet


Return to Servoy Web Client

Who is online

Users browsing this forum: No registered users and 3 guests