login with "other" deeplink in same browser

Using Servoy to administrate the content of your website? Discuss all webrelated Servoy topics on this forum!

login with "other" deeplink in same browser

Postby stefanoni » Thu Jan 16, 2014 7:03 pm

We use deeplinking to login in servoy.
Example (you can play arround if you like :-) ):
http://212.112.253.21:8080/servoy-webclient/ss/s/GigDoodle/a/ngjudpd71000p5uiolqh7bffi5

The problem we encounter:

If the user just types an other deeplink in the same session/browser,
Servoy doesn't recognize it as a new deeplink-request. That means the
onSolutionOpen is not fired.

Same if i open a new tab in the same browser.
And same if I close the browser (chrome in my case) !!!

That means, the user only can login with an other deeplink after the session timeout,
or if he is using an other browser (not chrome again).

What I am looking for:
How can I check if the user changed something in the url ?
If I could check this, I could close the solution an give the user a chance to start it again with an
other login-deeplink.

Thank you for any suggestions.
Alessandro Stefanoni ---- gigdoodle.ch ---- stefanoni.ch ----
Stefanoni Informatik Gmbh, CH-8200 Schaffhausen
Switzerland
stefanoni
 
Posts: 313
Joined: Fri Jul 23, 2010 3:17 pm
Location: Switzerland

Re: login with "other" deeplink in same browser

Postby stefanoni » Sat May 10, 2014 10:22 am

hmmm, can some one please give me an idea, if the question was non clear enough, or why nobody has the same problem ?
feel alone :oops:
Alessandro Stefanoni ---- gigdoodle.ch ---- stefanoni.ch ----
Stefanoni Informatik Gmbh, CH-8200 Schaffhausen
Switzerland
stefanoni
 
Posts: 313
Joined: Fri Jul 23, 2010 3:17 pm
Location: Switzerland

Re: login with "other" deeplink in same browser

Postby stefanoni » Sat May 10, 2014 10:34 am

Ok, this are two fiferent deep-Links

http://212.112.253.21:8080/servoy-webcl ... olqh7bffi5

http://212.112.253.21:8080/servoy-webcl ... 6a0q6bbis6

If you start the first one and after this, the second one it doesn't make a difference
If you start the second one after session timeout, or with an other browser (IE instead of Chrome)
it works.

regards
Alessandro Stefanoni ---- gigdoodle.ch ---- stefanoni.ch ----
Stefanoni Informatik Gmbh, CH-8200 Schaffhausen
Switzerland
stefanoni
 
Posts: 313
Joined: Fri Jul 23, 2010 3:17 pm
Location: Switzerland

Re: login with "other" deeplink in same browser

Postby mboegem » Sat May 10, 2014 1:22 pm

Hi Allesandro,

You can't accomplish this with these deep links.
The deep links as they are now pass the argument as a startup parameter.
What happens is that once you've used the first deep link your solution (or better: 'session') will startup using the startup parameter.
If you then click the second deep link it will use the same session and therefore it won't startup and skip the startup parameter.

What you need to do is pass the arguments into a global method and write your deep links like this:
{serverURL}/servoy-webclient/ss/s/{mySolutionName}/m/{myMethodName}/a/{value}

More documentation on deep links can be found here: https://wiki.servoy.com/display/public/DOCS/Web+Client

Hope this helps
_____________________
Marc Boegem
Solutiative / JBS Group, Partner
• Servoy Certified Developer
• Servoy Valued Professional
• Freelance SAN Developer

Image
User avatar
mboegem
 
Posts: 1382
Joined: Sun Oct 14, 2007 1:34 pm
Location: Hoofddorp, The Netherlands

Re: login with "other" deeplink in same browser

Postby stefanoni » Mon May 12, 2014 9:41 am

wow, sometimes Life can be so simple...

I red the documentation before and was just wondering why I should call a function, if i could send parameters.

thank you !
Alessandro Stefanoni ---- gigdoodle.ch ---- stefanoni.ch ----
Stefanoni Informatik Gmbh, CH-8200 Schaffhausen
Switzerland
stefanoni
 
Posts: 313
Joined: Fri Jul 23, 2010 3:17 pm
Location: Switzerland


Return to Web Development

Who is online

Users browsing this forum: No registered users and 1 guest