Forum  Commercial Foru...  Commercial Foru...  New User Verification
Previous Previous
 
Next Next
New Post 1/4/2010 6:22 PM
Unresolved
  derekmhart@yahoo.com
685 posts
1st Level Poster


New User Verification 

I have a sign up link on the main page in the VWG application. After a user signs up, a verification email is sent. That verification email goes to a URL with the same VWG page, but detect from the URL that is needs to verify a new sign up by breaking apart the URL (with a GUID). Now the user might, at that point, have another browser window opened with the VWG application if he/she just signed up. So then the user is stuck with two windows. If the user just closes the window that came up, because the other window is open (the first window), then the user tries to enter the new username and password that just got validated. At this point for some reason, the VWG application somewhat resets itself. I have code that runs, for example, on the textchanged event of the username and password fields, so if the user enters the username for the first time, it immediately erases what the user typed because the session has been reset (because of the other window that loaded and verified the new user). I would like some feedback here. Should I make a simple aspx page so I don't load up the VWG app again? Is there a way to not make this resetting happen?

 
New Post 1/5/2010 8:59 AM
  palli
11189 posts
1st Level Poster




Re: New User Verification 

Hi Derek,

What browser(s) do you experience this for ?

To me this sounds like you're using a browser where the two windows are using the same session, like for instance FireFox does for all it's windows. For FireFox, all tabs on all open windows on one workstation use the same FireFox process, and would use the same session in connection to your VWG application. This means that if you redisplay an empty logon form after the registration email has been sent, the user will see that cleared logon window on the next refresh in the other window.

To test if you are actually experiencing a session resets, have one FireFox window opened, and another IE window and test the same.

Palli

 


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


Re: New User Verification 

This happens in IE8. So what should I test in IE8 only to verify what you are asking?

 
New Post 1/5/2010 12:51 PM
  palli
11189 posts
1st Level Poster




Re: New User Verification 
Modified By palli  on 1/5/2010 3:52:17 PM)

Hi Derek,

To test, just do what I suggested. Open the site in two different browsers, IE8 and FF or Chrome.

Firefox is one of the browsers where the same session is used for all tabs and windows on the same workstation. IE8 is one of the browsers where the same session is sometimes used for all tabs and windows and sometimes not. I just tested on my workstation to verify what I have experienced before. The IE8 on my Vista is behaving exactly the same as FF. If I open a VWG application that requires logon in one Window and open it in another IE8 window, so that the logon screen is shown in both windows, and then login in one window and type something in the fields in the other window and click login button... it disregards the entered login info and just "jumps" directly into the app... exactly what it's supposed to do when both windows are using the same session.

So, again, open your site in IE8 and then in another browser and see what you get.

If you get different results in that case, you know this is what you are up against.

If that is the case, you will then need to search the internet for how to set your IE8 or your operating system to run two IE8 windows on seperate sessions, as I don't have that info at the moment.

Palli

 


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


Re: New User Verification 
Modified By derekmhart@yahoo.com  on 1/6/2010 8:45:58 PM)

OK, just want to bounce around some theory on this one. I have lots of code that runs on the textchanged events of username and password when the user signs in. So as verified from your suggestion above, chaos is created when the user signs up, and then a link opens another window. The "old" window somewhat resets itself so a bunch of chaos can then happen (for example, sign on with the "new window" from the email verification link, and then go back to the "old" window, don't even put in a username or password and hit logon, and it just logs into the site without really having put the username or password. And the site thinks that the logon page is still there and errors. This is a subtle bug. Any way to prevent?).

So here is my solution. When a user signs up, after a successful sign up, just abandon the session and tell the user the window will close (the browser may also ask the user if he/she wants to close it). This should not be a problem because the link sent to the email address will take the user right into a fresh session, and have the nice effect of auto-filling in the username. What do you think?

Any suggestions of how to make the "old" window work better, or is this approach better? A potential problem is that this exist the user out of a window, and the user may want to log on as somebody else at that moment. Help!?!

 
Previous Previous
 
Next Next
  Forum  Commercial Foru...  Commercial Foru...  New User Verification
Assessment 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