2 WebClient Sessions on Same Computer

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

2 WebClient Sessions on Same Computer

Postby chico » Wed Dec 14, 2011 8:00 pm

Can you run 2 separate webclient sessions/solutions on the same computer?

I'm attempting to by having the user click on button which is running in session A. (Solution name: "Help")

The new session opens up the Solution named "Store," but the original session (Solution "Help") claims that it has expired when the new session / solution is launched.

I open the 2nd solution ("Store") via an application.showURL call.

example:

Code: Select all
application.showURL(thyURL,'_blank', 'height=700,width=1000,status=no,toolbar=no,menubar=no,location=no')


Thanks.
--------------------------------------------
Servoy Version: 6.0.3
DB: MySQL 5.1
Win XP/Vista/7 - Java 5u20 / 6u22
OS X - 10.6.5 - Java 5/6 update 3
chico
 
Posts: 271
Joined: Tue Nov 20, 2007 6:34 am

Re: 2 WebClient Sessions on Same Computer

Postby ngervasi » Thu Dec 15, 2011 1:16 am

No, that's not actually possible, you can have one session per browser.
You should consider merging the 2 solutions as modules in a main solution and adjust your logic, this by the way will allow you to not use two licenses but just one per user.
Nicola Gervasi
sintpro.com
SAN Partner
ngervasi
 
Posts: 1485
Joined: Tue Dec 21, 2004 12:47 pm
Location: Arezzo, Italy

Re: 2 WebClient Sessions on Same Computer

Postby chico » Thu Dec 15, 2011 8:09 am

That's a big bummer. We would have been set! :)

Our problem is we have a mutli-tenant solution and we happen to also be one of the tenants. So, this means we use our solution to track and sell to our customers (who are also using our solution).

So, in a mult-tenant solution, we filter out all records but that of the customer's.

What we're trying to do is build self-service solutions which allow the user to interact with their invoices and pay them via a web-client session OR within their solution. Our invoice records for them are actually records that belong to our tenant account.

So basically, we're trying to let them access records that have been filtered.

Perhaps there's an easier way? Maybe doing direct SQL?

Thanks.
--------------------------------------------
Servoy Version: 6.0.3
DB: MySQL 5.1
Win XP/Vista/7 - Java 5u20 / 6u22
OS X - 10.6.5 - Java 5/6 update 3
chico
 
Posts: 271
Joined: Tue Nov 20, 2007 6:34 am

Re: 2 WebClient Sessions on Same Computer

Postby sbutler » Thu Dec 15, 2011 9:41 am

Here is how I do this:

- Add something in your tenant table to denote your tenant is an admin (like is_admin=1)
- Add a button somewhere on your screen to toggle between your tenant and the admin. The code behind this is just removing all the table filters or adding in the table filters (depending if you are switching back to a normal user).
- Add something so that button will show/hide depending on if you are logged in with the admin tenant
Scott Butler
iTech Professionals, Inc.
SAN Partner

Servoy Consulting & Development
Servoy University- Training Videos
Servoy Components- Plugins, Beans, and Web Components
Servoy Guy- Tips & Resources
ServoyForge- Open Source Components
User avatar
sbutler
Servoy Expert
 
Posts: 759
Joined: Sun Jan 08, 2006 7:15 am
Location: Cincinnati, OH


Return to Web Development

Who is online

Users browsing this forum: No registered users and 6 guests