Re: Not able to use 2 different sessions of different users
Then you have to put the session ID into the URL when the browser is making a request on behalf of you - for example, you want your user to display a private (password protected) image, or download a private document. Other than that, your f) is my c) without using the cookies as persistent storage. On Jul 28, 5:02 pm, "brett.wooldridge" wrote: > Option f) don't use session cookies (or servlet sessions). > > 1) Login to the server via RPC call. > 2) Successful login RPC returns a session ID, put the session ID in a > Java static or JS global variable. > 3) Pass the "session ID" in all RPC calls where it matters. > 4) Profit. > > Your server should be as stateless (session-less) as possible anyway. > > -Brett > > On Jul 25, 6:06 pm, Juraj Vitko wrote: > > > a) start your FF with -P and create different profiles, then start it > > with -P --no-remote and pick a profile - profiles don't share session > > cookies. (PITA, only FF) > > > b) use virtualization and run one FF and one IE8 in each instance > > (requires RAM) > > > c) bake your own session cookies - when your app starts, pull the > > cookie inside javascript, then use the cookie from there when > > communicating with the server. When you open another browser window > > and log out/in, the cookie changes, but your app in previous window > > will use the javascript one. (Dirty) > > > d) log out / log in always to test different sessions (PITA) > > > e) perhaps there are some browser extensions for IE and FF that can > > handle session cookie dynamic alternation (Weird) > > > My app uses c), but I don't rely on it, I use d) when developing for > > one user role, then for heavier multi-role testing I use b). > > > J. > > > On Jul 24, 8:20 am, vkm wrote: > > > > Hi, > > > > I have a problem with GWT and Firefox 3 and IE 8 browsers. > > > > I have an application developed in GWT. > > > 1. I open Firefox / IE browser and login with valid credentials and > > > it works fine. > > > > 2. I keep this session open and open other new Firefox / IE Browser > > > window and i login with different valid credentials. > > > > Now in the browser opened in #1 takes the credentials of the #2 > > > browser. > > > > Note 1: I donot see this issue if I run my application with 2 > > > different ports in hosted mode from Eclipse. > > > > Note 2: This issues is not Observer in IE 6. > > > > can you please let me know how to solve this issue or do we have any > > > workaround for this issue. > > --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: Not able to use 2 different sessions of different users
Option f) don't use session cookies (or servlet sessions). 1) Login to the server via RPC call. 2) Successful login RPC returns a session ID, put the session ID in a Java static or JS global variable. 3) Pass the "session ID" in all RPC calls where it matters. 4) Profit. Your server should be as stateless (session-less) as possible anyway. -Brett On Jul 25, 6:06 pm, Juraj Vitko wrote: > a) start your FF with -P and create different profiles, then start it > with -P --no-remote and pick a profile - profiles don't share session > cookies. (PITA, only FF) > > b) use virtualization and run one FF and one IE8 in each instance > (requires RAM) > > c) bake your own session cookies - when your app starts, pull the > cookie inside javascript, then use the cookie from there when > communicating with the server. When you open another browser window > and log out/in, the cookie changes, but your app in previous window > will use the javascript one. (Dirty) > > d) log out / log in always to test different sessions (PITA) > > e) perhaps there are some browser extensions for IE and FF that can > handle session cookie dynamic alternation (Weird) > > My app uses c), but I don't rely on it, I use d) when developing for > one user role, then for heavier multi-role testing I use b). > > J. > > On Jul 24, 8:20 am, vkm wrote: > > > > > Hi, > > > I have a problem with GWT and Firefox 3 and IE 8 browsers. > > > I have an application developed in GWT. > > 1. I open Firefox / IE browser and login with valid credentials and > > it works fine. > > > 2. I keep this session open and open other new Firefox / IE Browser > > window and i login with different valid credentials. > > > Now in the browser opened in #1 takes the credentials of the #2 > > browser. > > > Note 1: I donot see this issue if I run my application with 2 > > different ports in hosted mode from Eclipse. > > > Note 2: This issues is not Observer in IE 6. > > > can you please let me know how to solve this issue or do we have any > > workaround for this issue. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: Not able to use 2 different sessions of different users
a) start your FF with -P and create different profiles, then start it with -P --no-remote and pick a profile - profiles don't share session cookies. (PITA, only FF) b) use virtualization and run one FF and one IE8 in each instance (requires RAM) c) bake your own session cookies - when your app starts, pull the cookie inside javascript, then use the cookie from there when communicating with the server. When you open another browser window and log out/in, the cookie changes, but your app in previous window will use the javascript one. (Dirty) d) log out / log in always to test different sessions (PITA) e) perhaps there are some browser extensions for IE and FF that can handle session cookie dynamic alternation (Weird) My app uses c), but I don't rely on it, I use d) when developing for one user role, then for heavier multi-role testing I use b). J. On Jul 24, 8:20 am, vkm wrote: > Hi, > > I have a problem with GWT and Firefox 3 and IE 8 browsers. > > I have an application developed in GWT. > 1. I open Firefox / IE browser and login with valid credentials and > it works fine. > > 2. I keep this session open and open other new Firefox / IE Browser > window and i login with different valid credentials. > > Now in the browser opened in #1 takes the credentials of the #2 > browser. > > Note 1: I donot see this issue if I run my application with 2 > different ports in hosted mode from Eclipse. > > Note 2: This issues is not Observer in IE 6. > > can you please let me know how to solve this issue or do we have any > workaround for this issue. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Not able to use 2 different sessions of different users
Hi, I have a problem with GWT and Firefox 3 and IE 8 browsers. I have an application developed in GWT. 1. I open Firefox / IE browser and login with valid credentials and it works fine. 2. I keep this session open and open other new Firefox / IE Browser window and i login with different valid credentials. Now in the browser opened in #1 takes the credentials of the #2 browser. Note 1: I donot see this issue if I run my application with 2 different ports in hosted mode from Eclipse. Note 2: This issues is not Observer in IE 6. can you please let me know how to solve this issue or do we have any workaround for this issue. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---