Hi,
Is there any way in asp.net 1.1 to force a user to logout from an
existing session on machine1, if that same userid logs in with a new
session on another machine, say machine2?
We are using a web garden having two web servers with network load
balancing, along with a asp.net session state server which the web apps
on both the servers are pointing at for maintaining session state.
There is no server affinity for the requests going to both webservers.
Any links or articles, or guidelines would be greatly appreciated.
Thanks,
JGP 4 5007
One way that I can think of to implement this is to keep a hashtable of
logged in users and related information in Application state. Whenever a user
logs in , you can check this table and either notify the user they need to
log out at the original machine, or call the logout method first, before
logging in the user who signed in from a new machine. That should work with
Forms authentication. It's just an idea though, and would require some
serious study to implement fully.
One of the difficulties with Session is that you only have access to the
specific Session of the current user in your server-side code. You can't just
do Session.Abandon on somebody's specific session.
Peter
--
Co-founder, Eggheadcafe.com developer portal: http://www.eggheadcafe.com
UnBlog: http://petesbloggerama.blogspot.com
"Chumma Dede" wrote: Hi,
Is there any way in asp.net 1.1 to force a user to logout from an existing session on machine1, if that same userid logs in with a new session on another machine, say machine2?
We are using a web garden having two web servers with network load balancing, along with a asp.net session state server which the web apps on both the servers are pointing at for maintaining session state. There is no server affinity for the requests going to both webservers.
Any links or articles, or guidelines would be greatly appreciated.
Thanks, JGP
Any idea how this will work on a web-garden which has a common state
server, as I mentioned above?
Thanks,
JGP
With two machines, I think the correct term would be web farm, not web garden.
I really don't know the answer, you will need to experiment. I would think
that a common state server would make everything easier, no? You would need
to find out if Application State is shared between the machines. If not,
you'd need to do something else.
Peter
--
Co-founder, Eggheadcafe.com developer portal: http://www.eggheadcafe.com
UnBlog: http://petesbloggerama.blogspot.com
"Chumma Dede" wrote: Any idea how this will work on a web-garden which has a common state server, as I mentioned above?
Thanks, JGP
Could you explain a bit on how having "a common state server would make
everything easier" in this scenario?
Is there a way to share the Application state on the State server for
all machines in the web farm?
Thanks,
JGP This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: vincent |
last post by:
Hi,
If i login to the site again (may be in the same pc or
different pc), system must allow me in and end my previous
session.
How do i go about doing this?
This is to ensure that an user can have only one session
at a time.
|
by: Edward Chung |
last post by:
I create a user control that is used as a page header for all
application's pages. The user control contains a HyperLink control named
accountHyperlink whose text can either set to "Account/Logon" or
"Account/Logout" depending on whether the user is logged on. I want to cache
this user control for 1 hour but have it automatically reloaded if the
accountHyperlink.Text is changed. So I place the following line of code on
its ascx page:
...
|
by: somaskarthic |
last post by:
Hi
This is somas here. I asked query about detecting the browser close event using javascript. I want to detect the event only when the X button in the top right corner is clicked and not else where. (like moving to other pages by clicking some links).
Can u help me in this case.
Cause of this ,
In my php site, i want to restrict multiple logins with same username and password at a same time from different system.
To avoid this , in...
|
by: crescent_au |
last post by:
Hi all,
I've written a login/logout code. It does what it's supposed to do but
the problem is when I logout and press browser's back button (in
Firefox), I get to the last login page. In IE, when I press back
button, I get to the page that says "Page has Expired" but Firefox does
not do this.
I think it's something to do with sessions not properly unset or
something like that but I haven't been able to figure it out. I am
|
by: muchexie |
last post by:
I have created a log in system and logging in is functioning but logging out is not working its showing error warnings.
logout.php
<?
//include function files for this application
require_once("system_fns.php");
session_start();
$old_user = $valid_user; //store to test if *were* logged in
$result_unreg = session_unregister("valid_user");
| |
by: camilin87 |
last post by:
hello.
I'm building a site using php I have a setup.php page wich has at the
begining session_start();
and every single page from my site includes setup.php. When a user
registers I save in $_SESSION the userName, so that when !
isset($_SESSION) I can redirect him to the login.php page.
After some inactivityperiod, e.g. 20 min, I need that user to be
automatically logged off. Besides I need to keep track of the users
that are online in...
|
by: Andy_Khosravi |
last post by:
I have a method in place in my application to force users out. It's a
simple tactic I got from these newsgroups where you create a table
with one record called logout, then check that field with a timer on a
form that doesn't close. If it's checked, it starts a forced logout
sequence.
Works fine 99% of the time (unless somebody is in the middle of a
record update and walks away from their computer for several hours,
but that's a...
|
by: Adrock952 |
last post by:
I have a link on my site which obviously says "Login" where users log in.
I would like that link to be changed to "Logout" when the user has successfully logged in and the session has been created and when the user logs out, i would like the link changed back to "Login" without having to refresh the page.
here is my login page
<?php
if (is_authed_user())
{
print ('You are already logged in, <a href="index.php">click here</a> to...
|
by: DavidPr |
last post by:
When I logout as one user and log in under a different user, it opens with the last user's information.
User 1 - Unsername: Davey Jones
User 2 - Unsername: David Smith
I log out from Davey Jones, then login as David Smith the Welcome message below will show "Welcome Davey". And it will be Davey's information that is accessible - not David Smith's. So something is amiss but I don't know what.
(BTW, this login script is based on the...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |