473,604 Members | 2,710 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Logging off Windows 2000 from IIS

Fox
I will be traveling and I will need to show someone a
secure folder in an IIS website and I will be on a public
computer. When we are done, I will need to be able to log
off so no one else using that computer will find
their way into that part of the website. The security is
Windows authentiticatio n using Clear Text.

Can ASP log me off. If so I will need to code this before
I leave. Can anyone point me to where I can get some
examples of code to do this ?

Thanks
Fox

Jul 19 '05 #1
3 2048
Fox
Will it suffice to just end the session ?
How should I go about doing that.
I have never used code to end a session ?

Fox

"Fox" <fox @ connexions .net> wrote in message
news:OL******** ******@TK2MSFTN GP09.phx.gbl...
I will be traveling and I will need to show someone a
secure folder in an IIS website and I will be on a public
computer. When we are done, I will need to be able to log
off so no one else using that computer will find
their way into that part of the website. The security is
Windows authentiticatio n using Clear Text.

Can ASP log me off. If so I will need to code this before
I leave. Can anyone point me to where I can get some
examples of code to do this ?

Thanks
Fox

Jul 19 '05 #2
The only way to do this is to close the browser, because even if you kill
the session, IE will be "nice" and re-send your credentials if you were just
logged in. Okay, there is one other ~possible~ solution, and that is to
disable the account at the end of the session. This would require something
like, eh,
logout.asp:

<%

sUser = Request.ServerV ariables("LOGON _USER")
Session.Abandon ()
Response.Redire ct "someAnonymousP ath/page.asp?u=" & sUser

%>

And then in someAnonymousPa th/page.asp:

<%
Dim sUser, oShell
sUser = Request.Queryst ring("u")
Set oShell = Server.CreateOb ject("WScript.S hell")
oShell.Run "cmd.exe /c net user " & sUser & " /active:n"
Set oShell = Nothing
Response.Redire ct "somewhereelse. asp"
%>

This would require your IUSR account to have admin rights. This whole
suggest is unorthodox, but maybe you'd be cool with it if you just need
something setup temporarily.

Ray at work
"Fox" <fox @ connexions .net> wrote in message
news:OL******** ******@TK2MSFTN GP09.phx.gbl...
I will be traveling and I will need to show someone a
secure folder in an IIS website and I will be on a public
computer. When we are done, I will need to be able to log
off so no one else using that computer will find
their way into that part of the website. The security is
Windows authentiticatio n using Clear Text.

Can ASP log me off. If so I will need to code this before
I leave. Can anyone point me to where I can get some
examples of code to do this ?

Thanks
Fox

Jul 19 '05 #3
Fox
That's an interesting solution.
But the Admin rights, is a bit more than I can handle (G)
If closing the browser will do it, then I guess that is fine.
I've never tested that remotely. I was thinking that on my
network, it lives beyond closing a browser, but now
that I think of it, I was remembering wrongly. For me its
probably been that I have too many browser windows open
at once.

thanks,
Fox

"Ray at <%=sLocation% >" <myfirstname at lane34 dot com> wrote in message
news:ug******** ******@tk2msftn gp13.phx.gbl...
The only way to do this is to close the browser, because even if you kill
the session, IE will be "nice" and re-send your credentials if you were just logged in. Okay, there is one other ~possible~ solution, and that is to
disable the account at the end of the session. This would require something like, eh,
logout.asp:

<%

sUser = Request.ServerV ariables("LOGON _USER")
Session.Abandon ()
Response.Redire ct "someAnonymousP ath/page.asp?u=" & sUser

%>

And then in someAnonymousPa th/page.asp:

<%
Dim sUser, oShell
sUser = Request.Queryst ring("u")
Set oShell = Server.CreateOb ject("WScript.S hell")
oShell.Run "cmd.exe /c net user " & sUser & " /active:n"
Set oShell = Nothing
Response.Redire ct "somewhereelse. asp"
%>

This would require your IUSR account to have admin rights. This whole
suggest is unorthodox, but maybe you'd be cool with it if you just need
something setup temporarily.

Ray at work
"Fox" <fox @ connexions .net> wrote in message
news:OL******** ******@TK2MSFTN GP09.phx.gbl...
I will be traveling and I will need to show someone a
secure folder in an IIS website and I will be on a public
computer. When we are done, I will need to be able to log
off so no one else using that computer will find
their way into that part of the website. The security is
Windows authentiticatio n using Clear Text.

Can ASP log me off. If so I will need to code this before
I leave. Can anyone point me to where I can get some
examples of code to do this ?

Thanks
Fox


Jul 19 '05 #4

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

Similar topics

3
1565
by: Frantisek Fuka | last post by:
I am using the standard "logging" module included with Python and it seems it doesn't correctly identify the filename (and thus module name) from where the logging method was called. In fact, no matter from which module I call the logging method, the resulting log says that the filename of the caller is: \tmp\python.2664\usr\lib\python2.3\logging\__init__.py (this seems to me like a reference to the logging module itself combined with...
1
3692
by: j vickroy | last post by:
My system: MSW XP professional Python 2.3.3 logging package: 0.4.9.2 My problem: The log_test3.py script, provided with the logging package distribution, generates an unexpected message: No handlers could be found for logger "root"
0
390
by: Kamus of Kadizhar | last post by:
Thanks to Robert Brewer, I got enough insight into logging to make it work.... Now I have another issue: file locking. Sorry if this is a very basic question, but I can't find a handy reference anywhere that mentions this. When a logger opens a log file for append, is it automatically locked so other processes cannot write to it? And what happens if two or more processes attempt to log an event at the same time? Here's my...
0
1674
by: Neil Benn | last post by:
Hello, I'm running a test and having issues with logging, if I call logging.shutdown() and then want to start the logging going again then I get a problem as if I call shutdown, I can't get the root logger again, such as : ..>>> import logging ..>>> objTestLogger = logging.getLogger() ..>>> objTestLogger.setLevel(logging.INFO)
3
1707
by: Thomas | last post by:
Currently we have SQL Server running on a single RAID5 array. The data and the logs are all written to this array. We don't have huge volume of activity, but it is growing. Most activity is from our website that interacts a lot with the database. We have read that it is a good idea to separate the data files from the log files, having each on separate disks (or in the case of RAID, separate arrays). So, we are considering adding a...
16
2156
by: Einar Høst | last post by:
Hi, I'm getting into the Trace-functionality in .NET, using it to provide some much-needed logging across dlls in the project we're working on. However, being a newbie, I'm wondering if some more experienced loggers can provide me with some ideas as to how to log in a simple yet flexible manner. For instance, I'd like the code to be as uncluttered as possible by Trace statements. As an example of basic logging functionality, I've come...
4
3698
by: Andy Baker | last post by:
I have an Windows forms application written in VB.NET that uses a SQL Server 2000 back end database with Windows authentication. There is no problem accessing the database from my application, or from an installed version of the application on another machine. My problem is that I would like to access the database overnight unattended to perform some maintenance tasks. With my fairly limited knowledge of SQL Server and VB.NET, I thought...
7
8556
by: flupke | last post by:
Hi, i'm getting errors with the log module concerning RotatingFileHandler. I'm using Python 2.4.3 on Windows XP SP2. This used to work in previous python versions but since i upgraded to 2.4.3 i get these errors: Traceback (most recent call last): File "C:\Python24\lib\logging\handlers.py", line 71, in emit if self.shouldRollover(record):
9
2230
by: Claudio Grondi | last post by:
I am aware, that it is maybe the wrong group to ask this question, but as I would like to know the history of past file operations from within a Python script I see a chance, that someone in this group was into it already and is so kind to share here his experience. I have put already much efforts into this subject googling around, but up to now in vain. Best option I encountered yet is usage of the Greyware 'System Change Log' service...
3
6414
by: Lowell Alleman | last post by:
Here is the situation: I wrote my own log handler class (derived from logging.Handler) and I want to be able to use it from a logging config file, that is, a config file loaded with the logging.config.fileConfig() function. Let say my logging class is called "MyLogHandler" and it's in a module called "mylogmodule", I want to be able to make an entry something like this in my logging config file:
0
7997
marktang
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...
0
8419
Oralloy
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...
1
8065
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8274
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
5882
isladogs
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...
0
5441
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
3906
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...
0
3954
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2433
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 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.