I am developing a dashboard, wherein when the user logs in through a different site, they are directed to the dashboard. The userid is picked up from the URL sent to dashboard and stored in a session variable. The problem is when I am on one user's dashboard
and then I enter another user's through the same browser but on a different tab, the id's get overwritten. One of the id's is written on both of the dashboard's and thus deleting the second id. Is there any way how I can fix this in ASP.NET 3.5? Thanks
Only one user can be logged in on one browser at a time. I can never remember whether having a second instance of IE open forces a new session or not (try clicking the IE logo to open a new instance, rather than Ctrl + N) , but of you download and use FireFox
as well as IE, you will be able to log in as two different users.
I thought so too! But when I tried to do the same with 2 different Gmail accounts.....both the accounts were treated as different. I am not sure if this has anything to do with my code. Thanks
I didn't mean to suggest they use sessions, I'm sure they have pretty well defined methods of their own, but I was wondering if there is any other approach to it. Thanks
The client I work for has been doing that kind of testing. They were trying to view different accounts through the same browser but opened in different tabs. Just for testing.
Tell then they can't. Tell them that websites don't work that way. Otherwise you have to rewrite your logic to contend with the way they want to test, so they won't be testing the actual code. That makes the test pointless.
snailpace
Member
31 Points
285 Posts
Multiple simultaneous sessions
Oct 16, 2008 07:52 PM|LINK
Mikesdotnett...
All-Star
154887 Points
19862 Posts
Moderator
MVP
Re: Multiple simultaneous sessions
Oct 16, 2008 08:21 PM|LINK
Only one user can be logged in on one browser at a time. I can never remember whether having a second instance of IE open forces a new session or not (try clicking the IE logo to open a new instance, rather than Ctrl + N) , but of you download and use FireFox as well as IE, you will be able to log in as two different users.
Beginning ASP.NET Web Pages with WebMatrix | My Site | Twitter
snailpace
Member
31 Points
285 Posts
Re: Multiple simultaneous sessions
Oct 16, 2008 08:25 PM|LINK
Mikesdotnett...
All-Star
154887 Points
19862 Posts
Moderator
MVP
Re: Multiple simultaneous sessions
Oct 16, 2008 08:29 PM|LINK
I have no idea how Gmail tracks authenticated users. Your assumption that they use sessions may be incorrect.
Beginning ASP.NET Web Pages with WebMatrix | My Site | Twitter
snailpace
Member
31 Points
285 Posts
Re: Multiple simultaneous sessions
Oct 16, 2008 08:35 PM|LINK
Mikesdotnett...
All-Star
154887 Points
19862 Posts
Moderator
MVP
Re: Multiple simultaneous sessions
Oct 16, 2008 08:43 PM|LINK
You could use QueryString values without using sessions.
Beginning ASP.NET Web Pages with WebMatrix | My Site | Twitter
snailpace
Member
31 Points
285 Posts
Re: Multiple simultaneous sessions
Oct 17, 2008 12:54 PM|LINK
Mikesdotnett...
All-Star
154887 Points
19862 Posts
Moderator
MVP
Re: Multiple simultaneous sessions
Oct 17, 2008 09:03 PM|LINK
Could you explain why you want to be able to view more than one person's dashboard simultaneously on the same machine?
Beginning ASP.NET Web Pages with WebMatrix | My Site | Twitter
snailpace
Member
31 Points
285 Posts
Re: Multiple simultaneous sessions
Oct 20, 2008 12:22 PM|LINK
Mikesdotnett...
All-Star
154887 Points
19862 Posts
Moderator
MVP
Re: Multiple simultaneous sessions
Oct 20, 2008 12:39 PM|LINK
Tell then they can't. Tell them that websites don't work that way. Otherwise you have to rewrite your logic to contend with the way they want to test, so they won't be testing the actual code. That makes the test pointless.
Beginning ASP.NET Web Pages with WebMatrix | My Site | Twitter