locked
how to handle session state management RRS feed

  • Question

  • User1839056048 posted

    Hi friends,

    in my application.there is signin and signout.

    while sign in to the application there is a checking for whether the user is already signin.if it is already sign in there is another option for signout the seesion.ie there is a link comes click to signout your current session.after clicking that another message will come,you can now login. everything is working fine.

    my problem is if i sign in to one system ,without signout if i sign in from other system with same userid .i want session out the session from  first system.

    means allows only one login at a time.how it is possible. some tutorial says that, set variables in global.asax file.

    anybody know plz help me

    Regards

    Baiju

    Thursday, August 23, 2012 12:55 AM

Answers

  • User-926023460 posted

    add one column in login table bool ,

    and set it true when user login and when user logout set it to false.

    check it when user is login that that column is true or false..

    as simple..

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Thursday, August 23, 2012 1:05 AM
  • User-1865938134 posted

    check this .

    http://www.eggheadcafe.com/articles/20030418.asp

    http://engthunder.wordpress.com/2011/10/19/preventing-multiple-user-from-logging-in-using-the-same-username-single-user-login-at-a-time/

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Thursday, August 23, 2012 1:06 AM

All replies

  • User-926023460 posted

    add one column in login table bool ,

    and set it true when user login and when user logout set it to false.

    check it when user is login that that column is true or false..

    as simple..

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Thursday, August 23, 2012 1:05 AM
  • User-1865938134 posted

    check this .

    http://www.eggheadcafe.com/articles/20030418.asp

    http://engthunder.wordpress.com/2011/10/19/preventing-multiple-user-from-logging-in-using-the-same-username-single-user-login-at-a-time/

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Thursday, August 23, 2012 1:06 AM