473,320 Members | 2,133 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

One session per user

Hi, I'm looking for options on how to allow a particular user to be logged in
only once at one time. In other words, not allow a user to login on two
different machines and in so creating two different sessions for the same
user login ID.
So far, the best option that I can see is to store an identifier (loginid
and sessionID)in the application cache. However, there's no guarantee to
clean the application cache out when the user session expires (other than the
application cache expires)
Is there any better way of allowing only one session per userlogin?

Your help is appreciated,
Nov 19 '05 #1
2 7021
PL
http://www.eggheadcafe.com/articles/20030418.asp
I think this is the best solution I've found on this, there are simpler ways but they
always end up with some issue.

PL.

"boekhocg" <bo******@discussions.microsoft.com> skrev i meddelandet news:4F**********************************@microsof t.com...
Hi, I'm looking for options on how to allow a particular user to be logged in
only once at one time. In other words, not allow a user to login on two
different machines and in so creating two different sessions for the same
user login ID.
So far, the best option that I can see is to store an identifier (loginid
and sessionID)in the application cache. However, there's no guarantee to
clean the application cache out when the user session expires (other than the
application cache expires)
Is there any better way of allowing only one session per userlogin?

Your help is appreciated,

Nov 19 '05 #2
That is exactly what I was thinking of doing. This is just the verification I
needed. Thank you for your reply.

"PL" wrote:
http://www.eggheadcafe.com/articles/20030418.asp
I think this is the best solution I've found on this, there are simpler ways but they
always end up with some issue.

PL.

"boekhocg" <bo******@discussions.microsoft.com> skrev i meddelandet news:4F**********************************@microsof t.com...
Hi, I'm looking for options on how to allow a particular user to be logged in
only once at one time. In other words, not allow a user to login on two
different machines and in so creating two different sessions for the same
user login ID.
So far, the best option that I can see is to store an identifier (loginid
and sessionID)in the application cache. However, there's no guarantee to
clean the application cache out when the user session expires (other than the
application cache expires)
Is there any better way of allowing only one session per userlogin?

Your help is appreciated,


Nov 19 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Morten | last post by:
Hi! I've been implementing forms based authentication in a web project. It works pretty good. When I log on by clicking the "login" button the following code is executed: if...
8
by: Dave Wurtz | last post by:
All, I'm new to ASP development and I have a basic design question: Is it ok to store business objects to session variables or is there a better way to keep object information? For example,...
8
by: Leon | last post by:
I know that I can access session state on an asp.net page using Page objects, but how do I access store data in sessionstate from the middle tiers?
5
by: tshad | last post by:
If I am using FormsAuthentication, is there a way to check who is logged in? I want to be able to check at any particular time, not just how many people are logged in, but who they are. One...
2
by: Fabrice | last post by:
Hello, I 'would like to build a system (based on database, not SqlServer but MySQL) to permit only one session per user. I'm using a form athentication. My Solution : --------------- When...
7
by: tshad | last post by:
Can I directly access an object member from an object I have saved as a session variable? I am carrying a session variable for my user information as separate session vaiables for each...
3
by: vvenk | last post by:
Hello: This was posted in a wrong forum; that's why I am posting here again. Sorry. I just wrote my first ASP.Net application, tested it on my development environment and deployed it on a...
2
by: tshad | last post by:
I created a User Control that just does some VB code and doesn't have any HTML in it. Mainly it is an initialization piece that I want to put on all my pages. It just has this code: ...
2
by: Anthony Smith | last post by:
I have read the message boards in this group and others. I still have not been able to pull my obect out of a session and use it. Here is how I store it in a session: <? //Include the UserClass...
2
by: phpuser123 | last post by:
I have as my script the following.. <?php session_start();?> <html> <body>I am<?php function setanimal(){echo (isset( $_SESSION)); if (isset( $_SESSION)){ return ...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.