Click here to Skip to main content
15,919,434 members
Home / Discussions / ASP.NET
   

ASP.NET

 
Questiondelete history Pin
amaneet9-Oct-06 2:16
amaneet9-Oct-06 2:16 
QuestionSwaaping the record in datagrid and database Pin
shivamala9-Oct-06 1:24
shivamala9-Oct-06 1:24 
QuestionRe: Swaaping the record in datagrid and database Pin
safat9-Oct-06 20:27
safat9-Oct-06 20:27 
QuestionGet DB record into XML thn show its HTML tag Pin
Deepak the Cool9-Oct-06 0:51
Deepak the Cool9-Oct-06 0:51 
QuestionViewState for Checkbox Enabled Property Pin
Mahaprabhu9-Oct-06 0:28
Mahaprabhu9-Oct-06 0:28 
Question<%= <%$ <%# Pin
dabs9-Oct-06 0:08
dabs9-Oct-06 0:08 
Questionswapping of two rows in a datagrid [modified] Pin
Krishlibran8-Oct-06 23:48
Krishlibran8-Oct-06 23:48 
QuestionProblem with Context User when I authenticate users in the same thread of a process Pin
fcortesfranco8-Oct-06 23:24
fcortesfranco8-Oct-06 23:24 
Problem with Context User when I authenticate users in the same thread of a process

Hi, I hope you can help me with this problem, (in spite of my english! Smile | :)

I use CustomIdentity to authenticate the users in my webapp and read some information (Language, ID....) of the context user. It works fine if users use different browser instances for access the webapp, but if they use different threads of the same process, context user of these threads are mixed.

Some example

1) Alice opens iexplorer and connect to the webapp. She authenticates herself with her user 'UserAlice' and goes into. At this moment exist one process (iexplorer.exe) running

2) Alice open another iexplorer and connect to the webapp. She authenticates herself with another user that she managed 'UserAlice2' and goes into. At this moment exists two process (iexplorer.exe of step 1 and this one). These users can works fine at the same time

3) Alice uses 'open new window' command from the browser that she opened at step 2. (At this moment exist two process, not three) If she connect to the webapp and authenticates herself with another user that she managed 'UserAlice3' , the context user of the step 2 will be replaced for this user, and, in spite of the tree users connected (UserAlice,UserAlice2 and UserAlice3) at the tree different window browser, we have only two users (UserAlice on the first window and UserAlice2 at the others)

I need that people can manage diferent users on the same machine, but I can't control that they use new browsers spite of 'new window' commands. Besides, I need that they connect to the webapp from a link in a mail, and this action causes always that iexplorer starts a new thread, not a new process....

I use this code to authenticate users:

CustomIdentity userIdentity = new CustomIdentity(user.Name, 1, true, false, student.Surname + " " + student.Name, student.Email, user.Language, "");<br />
ArrayList roles = User.GetRoles();<br />
CustomPrincipal principal = new CustomPrincipal(userIdentity, roles);<br />
Context.User = principal;



Thanks in advance, any help would be appreciated
QuestionTextBox which does not allow its text to select and copy Pin
ravindradonkada8-Oct-06 23:16
ravindradonkada8-Oct-06 23:16 
AnswerRe: TextBox which does not allow its text to select and copy Pin
Guffa9-Oct-06 0:30
Guffa9-Oct-06 0:30 
QuestionError while trying to Run an application [modified] Pin
Vsree8-Oct-06 22:55
Vsree8-Oct-06 22:55 
AnswerRe: Error while trying to Run an application Pin
safat9-Oct-06 20:33
safat9-Oct-06 20:33 
QuestionDatagrid Row Pin
kirthikirthi8-Oct-06 21:24
kirthikirthi8-Oct-06 21:24 
AnswerRe: Datagrid Row Pin
_AK_8-Oct-06 21:29
_AK_8-Oct-06 21:29 
GeneralRe: Datagrid Row Pin
kirthikirthi9-Oct-06 19:18
kirthikirthi9-Oct-06 19:18 
GeneralRe: Datagrid Row Pin
_AK_9-Oct-06 19:24
_AK_9-Oct-06 19:24 
AnswerRe: Datagrid Row Pin
safat10-Oct-06 2:05
safat10-Oct-06 2:05 
GeneralRe: Datagrid Row Pin
kirthikirthi11-Oct-06 18:30
kirthikirthi11-Oct-06 18:30 
QuestionValidation Problem Pin
Sushant Duggal8-Oct-06 21:20
Sushant Duggal8-Oct-06 21:20 
AnswerRe: Validation Problem Pin
_AK_8-Oct-06 21:23
_AK_8-Oct-06 21:23 
GeneralRe: Validation Problem Pin
Sushant Duggal8-Oct-06 21:33
Sushant Duggal8-Oct-06 21:33 
GeneralRe: Validation Problem Pin
_AK_8-Oct-06 21:37
_AK_8-Oct-06 21:37 
AnswerRe: Validation Problem Pin
Sushant Duggal8-Oct-06 23:09
Sushant Duggal8-Oct-06 23:09 
Questionmsg box Pin
ptvce8-Oct-06 20:59
ptvce8-Oct-06 20:59 
QuestionWeb Application Pin
Murali.y8-Oct-06 20:45
Murali.y8-Oct-06 20:45 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.