preventing multiple logins

  • Thread starter Thread starter sameer.gupta
  • Start date Start date
S

sameer.gupta

one important problem i am facing is that my web solution
(asp.net) will be deployed on a webfarm. I am using sql
server session management on clustered sqlservers. but as
i need to prevent multiple logins through a
username/password (same credentials at a time) on the
website.

also session_end() event does not fire in sql server mode.

one solution is sychronized cache of webservers. and
maintaining usernames (loggedin) in the application cache.
This solution does not look like a robust solution.
suggest a standard solution.


please help me.

Regards
Sameer
 
Hi,

I implement solution for one of my client, but it's not an easy one.

What I’ve done is create my one Page class and delegate all the session
functionality (since session class is sealed). the delegate function use
the session cookie ID to get Session data from DB (the same as ASP.NET
does). Using this pattern you can get what ASP.NET sql server session
gives you and still use the session’s events.

Yes, I know its not so easy but it works ...

Natty Gur[MVP]
Phone Numbers:
Office: +972-(0)9-7740261
Fax: +972-(0)9-7740261
Mobile: +972-(0)58-888377
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top