P
peprom
Hello
I am developing web application, which is a part of IT project. In my web
app Administrators can add end-users of this project. My web app is at the
end of development process (it is on beta tests now) and it is my first
asp.net project.
I am using asp.net 2.0, SqlServer Enterprise and asp.net ajax framework 1.0
(to make my site modern)
I am using forms authentication method in my login page. After Administrator
succesfully logged in (I am using FormsAuthenticationTicket to save some
information such as user role , then I am going to encrypt this information
using FormsAuthentication.Encrypt() method and finally I am going to save it
in Cookie.Value), he is going to choose one of he is profile - he can got few
profiles (I am saving this information simple in Session.Add method, and then
checks state of this values and current User.IsInRole method every Page_Loads
events). In conclusion - we have encrypted ticket with some values and
session state of previously choosen profile.
Yesterday I have unexpected encountered this strange situation. After
succesfully authorization I have made some operations, then I have pressed
back button om my page (which calls Response.Redirect(Default.aspx)) method
and suddendly discovered that I have pretended to another logged in user (my
page is on tests and probably a few people were working in same time as me).
I was logged in as another user (I have lost my ticket and session and get
session and ticket of another user)!!This situation is frigtened for me. I
prefer program to crash and send some strange error information than
situation above.
This situation has never happened to me on local machine and probably can
happen when 10 or more people are working at the same time.
For me - this situation shouldn't take place - logged in users should be in
separate threads for iis server and can't cross each other.
I don't know what to do. I can limit number of connections to small number
(I think this is the fastest method) but I don't know how it deals with ajax.
I would like to avoid situation when logged in users suddendly lost their
sessions according to connection limits.
I would like to ask you for some advices, articles or examples - how to
configure iis for this kind of situation (Sessions etc - I have default
settings), how to deal with logging process (some patterns and practices -
this is my first asp.net project).
I don't know reason of this situation - maybe Session is too large (I am
collecting in session state data from database to make google like suggests
for textbox), maybe ajax and the asynchronous calls make this strange
situation (I am using UpdatePanel control in my page - every control in my
page are inside UpdatePanel).
Maybe Ajax Framework (1.0 version) can't deal properly with big number of
active sessions..
Thanks in advance
I am developing web application, which is a part of IT project. In my web
app Administrators can add end-users of this project. My web app is at the
end of development process (it is on beta tests now) and it is my first
asp.net project.
I am using asp.net 2.0, SqlServer Enterprise and asp.net ajax framework 1.0
(to make my site modern)
I am using forms authentication method in my login page. After Administrator
succesfully logged in (I am using FormsAuthenticationTicket to save some
information such as user role , then I am going to encrypt this information
using FormsAuthentication.Encrypt() method and finally I am going to save it
in Cookie.Value), he is going to choose one of he is profile - he can got few
profiles (I am saving this information simple in Session.Add method, and then
checks state of this values and current User.IsInRole method every Page_Loads
events). In conclusion - we have encrypted ticket with some values and
session state of previously choosen profile.
Yesterday I have unexpected encountered this strange situation. After
succesfully authorization I have made some operations, then I have pressed
back button om my page (which calls Response.Redirect(Default.aspx)) method
and suddendly discovered that I have pretended to another logged in user (my
page is on tests and probably a few people were working in same time as me).
I was logged in as another user (I have lost my ticket and session and get
session and ticket of another user)!!This situation is frigtened for me. I
prefer program to crash and send some strange error information than
situation above.
This situation has never happened to me on local machine and probably can
happen when 10 or more people are working at the same time.
For me - this situation shouldn't take place - logged in users should be in
separate threads for iis server and can't cross each other.
I don't know what to do. I can limit number of connections to small number
(I think this is the fastest method) but I don't know how it deals with ajax.
I would like to avoid situation when logged in users suddendly lost their
sessions according to connection limits.
I would like to ask you for some advices, articles or examples - how to
configure iis for this kind of situation (Sessions etc - I have default
settings), how to deal with logging process (some patterns and practices -
this is my first asp.net project).
I don't know reason of this situation - maybe Session is too large (I am
collecting in session state data from database to make google like suggests
for textbox), maybe ajax and the asynchronous calls make this strange
situation (I am using UpdatePanel control in my page - every control in my
page are inside UpdatePanel).
Maybe Ajax Framework (1.0 version) can't deal properly with big number of
active sessions..
Thanks in advance