Forum  Commercial Foru...  Commercial Foru...  New User Verification
Previous Previous
 
Next Next
New Post 2/8/2010 1:47 PM
  palli
11162 posts
1st Level Poster




Re: New User Verification 

Hi,

Let's recall what we have here. You have user A logged in to your application and then user B on that same workstations gets a user verification link that he clicks on and is logged into the same application, possibly with another vwginstance, correct ?

Your problem is that when user B gets logged in via the verifycation link, then user A continues where B left off, unless you have different vwginstance-s for the two users, correct ?

The problem here is the session level IsLoggedOn. No matter if you created an unauthenticated asp.net page to handle the verification, which is of course possible, then you would still have the problem of either both users are logged in or they both are not, as the IsLoggedOn is session level in 6.3.x.

From what I can see of this, then I think you are not able to solve your problem with the Visual WebGui forms authentication in 6.3.

It might be possible, with smart usage of vwginstance, to make this work with "your own" logon processing, in which case you would not be using the logonform settings in Visual WebGui, rather require authentication on a form level where you would add your own checks in Form.Load where you require user authentication. Keeping the credentials within the form class itself, instead of keeping it in the context or session as you now do, and making sure a new vwginstance is "issued" for each such new request, this should be possible.

What you are effectively doing is disabling the Visual WebGui authentication and making your own, and at the same time you decide on a form per form basis for which forms you require authentication, which should of course be for all forms that are externally available, except for the registration/verification form...

If you do a redirect or Link.Open within your application, you would have to expose those forms via web.config, and in all those forms you would have to beware and make sure no user gets access unless authenticated. This is much harder to do than the Visual WebGui authentication, but it should be possible.

Palli

 


Páll Björnsson - Visual WebGui support team - Email: support@visualwebgui.com
 
New Post 2/9/2010 12:11 PM
  derekmhart@yahoo.com
682 posts
1st Level Poster


Re: New User Verification 

The main thing I want to do is have a user registration link, and even though this mostly happens when I am developing, I want another instance to pop up to verify the user is validate. So here is what I will do. I will create another VWG application entirely, that simply does this verification. Agree?

 
New Post 2/9/2010 12:30 PM
  palli
11162 posts
1st Level Poster




Re: New User Verification 

Hi Derek,

As I understand your suggestion, then you will use one app for the registration/verification and another app for the "main" application.

If using Visual WebGui for the registration app, then from that application, destroying the session just before you redirect to your main application, would make sure the next user doesn't continue where the first one left off. You can always create situations where this might still be questionable, for instance user A clicks the registration link and then user B clicks another link before A completes, then B would get the same screen, unless you make sure each link will have a different vwginstance.

And then of course, if user A logs in to your main app, and then user B gets redirected to your main app, then user B would run under A's credentials as B doesn't get a logon request. You can make sure B doesn't get A's screen/form by using different vwginstance, but B would still be running under A's credentials.

In my experience at work, this is a situation we rarely or almost never get into. That confirms what you say that this will mainly be during development that you have these issues.

Palli

 

 


Páll Björnsson - Visual WebGui support team - Email: support@visualwebgui.com
 
New Post 4/10/2010 5:29 PM
  derekmhart@yahoo.com
682 posts
1st Level Poster


Re: New User Verification 
Modified By derekmhart@yahoo.com  on 4/10/2010 8:01:43 PM)

If I launch my web site, all is okay the first time. Then I will to place a parameter in the URL. So the first instance of the site is loaded like this:

www.mydomain.com/Main.wgx

Then I want to go up and type into the URL

www.mydomain.com/post.Main.wgx?MyVar=Something

All of my context variables are reset at that point. I am setting context variables like this:

VWGContext.Current("MyVar") = Value

How do I keep these variables when changing the parameters, specifically going from Main.wgx to post.Main.wgx?MyVar=Something? Why does a reset happen?

 
New Post 4/10/2010 6:46 PM
  palli
11162 posts
1st Level Poster




Re: New User Verification 

Hi Derek,

The reason is that when you include the "post" prefix, a new context is created. Skipping the "post" prefix, and you will not get that effect, but then again the Load event will not fire either.

Palli

 


Páll Björnsson - Visual WebGui support team - Email: support@visualwebgui.com
 
Previous Previous
 
Next Next
  Forum  Commercial Foru...  Commercial Foru...  New User Verification
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