i have used sessions in my web app.
and i sets up sessions on login with userid.
sometimes when one user will post their problem using my web application.,
than entry will be there with that perticular userid and another entry also be there with any random userid.
so, multiple entries will be there in same table in sql. (this happens randomly)
(this happens - when 2-3 user trying to access same thing)
sometimes it takes any other / random userid (may be previously logged in user id) and insert data with any userid.
and
sometimes one user wants to see log of his activity
so he able to see another users activities or all users activities or his own activities . this one happens randomly too.
please help.
mail id is: [email protected]
Loading
aadi patelPosted Sep 12, 2012, 8:23 AM
I am using static class object for Session. this happens due to statics objects.
so remove all static objects,
and working with some class and using objects.
Abhimanyu K VatsaPosted Sep 11, 2012, 11:04 AM
i) expire the session on logout immediately
ii) you need some unique value that identifies the form/page - perhaps a generated number in a hidden field - and remember/check that is has been processed
iii) Disable the button after click
iv) always use
Hope this helps.
aadi patelPosted Sep 11, 2012, 3:36 AM
help me if you have any better idea.
Sukesh MarlaPosted Sep 11, 2012, 3:08 AM
use Guid.newID() to genrate random guid for every user in .net and in sql create Column with datattype uniqueidentifier
Check this is correct answer if it helped.