469,312 Members | 2,493 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,312 developers. It's quick & easy.

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 authentitication 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 1993
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**************@TK2MSFTNGP09.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 authentitication 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.ServerVariables("LOGON_USER")
Session.Abandon()
Response.Redirect "someAnonymousPath/page.asp?u=" & sUser

%>

And then in someAnonymousPath/page.asp:

<%
Dim sUser, oShell
sUser = Request.Querystring("u")
Set oShell = Server.CreateObject("WScript.Shell")
oShell.Run "cmd.exe /c net user " & sUser & " /active:n"
Set oShell = Nothing
Response.Redirect "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**************@TK2MSFTNGP09.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 authentitication 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**************@tk2msftngp13.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.ServerVariables("LOGON_USER")
Session.Abandon()
Response.Redirect "someAnonymousPath/page.asp?u=" & sUser

%>

And then in someAnonymousPath/page.asp:

<%
Dim sUser, oShell
sUser = Request.Querystring("u")
Set oShell = Server.CreateObject("WScript.Shell")
oShell.Run "cmd.exe /c net user " & sUser & " /active:n"
Set oShell = Nothing
Response.Redirect "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**************@TK2MSFTNGP09.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 authentitication 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 discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by Frantisek Fuka | last post: by
1 post views Thread by j vickroy | last post: by
reply views Thread by Kamus of Kadizhar | last post: by
reply views Thread by Neil Benn | last post: by
16 posts views Thread by Einar Høst | last post: by
7 posts views Thread by flupke | last post: by
9 posts views Thread by Claudio Grondi | last post: by
3 posts views Thread by Lowell Alleman | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by suresh191 | last post: by
1 post views Thread by Geralt96 | last post: by
reply views Thread by harlem98 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.