Forum  Commercial Foru...  Commercial Foru...  ForcePageInstance Mode="On"
Previous Previous
 
Next Next
New Post 7/12/2010 2:25 PM
  jayhobbs
1664 posts
1st Level Poster




ForcePageInstance Mode="On" 
Modified By ori.cohen  on 7/13/2010 12:05:29 PM)

Hi Guys,

I was trying out the new <ForcePageInstance Mode="On" />

I was expecting a new tab in IE to open my Loginform but it jumped straight onto the application.

Also the URL shown in the browser is

http://localhost/cmms/MainForm.ashx?vwginstance=79ce38a28906406d8caf52f284dc1048

How can I stop the vwginstance showing?

Cheers

Jay

 

 

 
New Post 7/13/2010 10:03 AM
  ori.cohen
4390 posts
1st Level Poster




Re: ForcePageInstance Mode="On" 

Hello Jay,

This configuration is meant to do a single thing:
When you make an initial request to get your Form:
http://localhost/cmms/MainForm.ashx
The Visual WebGui framework changes the URL to suite the specific context that is now in use for serving that application. This is done by adding the vwginstance URL parameter and providing it with a guid, for getting a unique context that was not previously used on that session.
If you use the: "http://localhost/cmms/MainForm.ashx" URL again on that same browser window and even in the same tab, a new context will be created for you, to serve this new application, and a different guid will be shown in the value of the vwginstance URL parameter.

This has nothing to do with Visual WebGui authentication and the application's set LogonForm.

Regards,

Ori Cohen
Support Manager, the Visual WebGui team

 

 
New Post 7/14/2010 9:27 PM
  jayhobbs
1664 posts
1st Level Poster




Re: ForcePageInstance Mode="On" 

Hi Ori,

Many thanks for your explanation.

Is there any way to force any new tab to use the logonform?

Best Regards

Jay

 

 
New Post 7/14/2010 10:39 PM
  ori.cohen
4390 posts
1st Level Poster




Re: ForcePageInstance Mode="On" 
Modified By ori.cohen  on 7/15/2010 1:41:54 AM)

Hello Jay,

You probably understand the Visual WebGui login mechanism very well by now.
Basically if you want to login in the session level (be logged in in all open contexts of that session), you can set the LogonForm to be a MainForm (add it to the Applications list in the Registration tab of the project properties-page).
Then you will be able to use Link.Open to open the LogonForm directly in a different tab.
The LogonForm will open in a different context, but that is not a problem, because if you authenticate the user and set: Session.IsLoggedOn = true;
That will also be relevant to the original application that initiated the Link.Open of the LogonForm.

If you want you could also add a JavaScript call via server-client invocation from the LogonForm so it will call the client side of the main application via a JS "opener" DOM object, like so:
window.opener.location.reload(true); window.close();

This will cause the opener tab to refresh and then the current tab to close.

Regards,

Ori Cohen
Support Manager, the Visual WebGui team

 
New Post 7/16/2010 4:33 PM
  jayhobbs
1664 posts
1st Level Poster




Re: ForcePageInstance Mode="On" 
Modified By jayhobbs  on 7/17/2010 1:07:08 AM)

Hi Ori,

The setup I have at the moment uses Mainform as the start form with authentication set to LogonForm

This works well and times out after 20 minutes

If I add a button to do a link.open the new Logonformdoes not work even though I tried adding a context.redirect (and transfer) to Mainform

Also I have no way of stopping the user opening a new tab to Mainform

If I try the othet way round and set LogonForm as the start form the timeout no longer works

The only thing I know about Java is to do with coffee so can you please explain in a bit more detail.

What I am after is that any instance of the application being called will open the logonform for authentication and that the application will timeout after 20 minutes

I also tried using VWGInstance as in

http://wiki.visualwebgui.com/pages/index.php/Form_Concepts_CodeSample_-_Using_vwginstance_to_force_new_context_created_every_time

But although the form gets a new instance it does not fire the Load event

 

Best Regards

Jay

 

 

 

 

 
Previous Previous
 
Next Next
  Forum  Commercial Foru...  Commercial Foru...  ForcePageInstance Mode="On"
CompanionKit Bottom
.NET Web, Cloud and Mobile application delivery platform | Sitemap | Terms of Use | Privacy Statement | Copyright © 2005-2011 Visual WebGui®       Visual WebGui weblog on ASP.NET Visual WebGui Group on LinkedIn Visual WebGui updates on Twitter Visual WebGui Page on Facebook Visual WebGui YouTube Channel Visual WebGui Platform News RSS