Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

is admininstrator able to view the data for activity time?

 
shyam ji gautam
Ranch Hand
Posts: 49
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
scenario is like this

let us suppose that there is a one user Bwhich is admin will be able to see the database table usermaintenance
this table has field name

userid , last activity time, activity name flag value
1 12.00 login on


Last activity time is the time when user click on particular command on web application ok

flag value on means user is online and if it is off then it is offline and user will be able to login only when flag value = off

means by using same userid and password other will not be able to login because flag is set to on already
SO if
on time t=0 user A is online and we present all user which is online to admin B by query

select * from usermaintanace where flag =on then so if admin B set flag to 'off' on t= 0.2 when user A surfing the website .

so my question is that what will be effect on user A surfing process , i am using hybernate for database.
will user not be able to any thing in same time frame or not.


thanks
 
Wouter Oet
Saloon Keeper
Posts: 2700
IntelliJ IDE Opera
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That is a very bad design. Since HTTP is stateless there is no way to know if a user is online. If a user would remove it's session cookie then he doesn't have a session but since the flag is set he'll be unable to login.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic