B4J Question Webview per Session/Client at JServer

Magma

Expert
Licensed User
Longtime User
Hi Fam...

I am creating a project... a server with API... that will be used from clients/browsers/apps...

Every time someone using API login https://atmyserver/myapi/login will create a webview for specific session (is it possible?)
thinking to do it something like that:
B4X:
    Public WebViewMap As Map
    WebViewMap.Initialize
....
    Dim wv As WebView
    wv.Initialize("")
    WebViewMap.Put(idofsession, wv)
...when second session will get new idofsession:
    Dim wv As WebView
    wv.Initialize("")
    WebViewMap.Put(idofsession, wv)

With running javascript with javaobject and getEngine... will use dom elements to login...

My silly question is that.... every webview using exclusive cookies? and if not? how to push it use different cookies - and how to have all these webviews open and using them the same time/concurrency without problems ?

Need at any API call - to login at every webview, browse pages, extract data or can split those between api calls ? what do you think ?
or at specific time session/webview will logout me as in standard browser?
 

Magma

Expert
Licensed User
Longtime User
Well.. no.. let me take it from start..

There is one public website app that is not offering api.. and need to make it simpler for every client .. this is I am doing with a local b4j app... but I need to make it as a web service..
 
Upvote 0

Magma

Expert
Licensed User
Longtime User
You should use jServer for this.
Yes I will serve clients via jserver... but how I will connect for every client at different web view to connect at this public site (not mine, gov) - login with credentials and browse pages.. for them...?

Also I will have many works split at handles that will reuse their sessions... how to achieve that ?
 
Upvote 0
Top