473,569 Members | 2,522 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

session/application reset

Does anyone know of a way through asp code to drop a users application
connection and prompt them for their credentials? I would like to offer the
ability to log into the application with different NT username and password
with them having to close and re-open their browser. I am using basic
athentication for my application.

Thanks
Jul 19 '05 #1
5 1904
Here is something that I bookmarked a while back but have never done
anything with it.
http://support.microsoft.com/?kbid=195192

As far as I know, IE will always try to automatically re-authenticate you
with your previous credentials if the server prompts for authentication. I
really bad way to get around this may be to cacls permissions away from
yourpage.asp when the user loads logout.asp, and then when he logs in as
someone else, cacls the permissions back. I don't think I'd be into doing
this though...

Ray at work
"Dan Reese" <dl*****@pahous e.net> wrote in message
news:uA******** ******@tk2msftn gp13.phx.gbl...
Does anyone know of a way through asp code to drop a users application
connection and prompt them for their credentials? I would like to offer the ability to log into the application with different NT username and password with them having to close and re-open their browser. I am using basic
athentication for my application.

Thanks

Jul 19 '05 #2
You can try Session.Abandon () .

S. L.

"Dan Reese" <dl*****@pahous e.net> wrote in message
news:uA******** ******@tk2msftn gp13.phx.gbl...
Does anyone know of a way through asp code to drop a users application
connection and prompt them for their credentials? I would like to offer the ability to log into the application with different NT username and password with them having to close and re-open their browser. I am using basic
athentication for my application.

Thanks

Jul 19 '05 #3
That was wonderful. It did exactly what I was looking for. Thank you so
very much.
"Ray at <%=sLocation% > [MVP]" <myfirstname at lane34 dot com> wrote in
message news:%2******** *******@TK2MSFT NGP09.phx.gbl.. .
Here is something that I bookmarked a while back but have never done
anything with it.
http://support.microsoft.com/?kbid=195192

As far as I know, IE will always try to automatically re-authenticate you
with your previous credentials if the server prompts for authentication. I really bad way to get around this may be to cacls permissions away from
yourpage.asp when the user loads logout.asp, and then when he logs in as
someone else, cacls the permissions back. I don't think I'd be into doing
this though...

Ray at work
"Dan Reese" <dl*****@pahous e.net> wrote in message
news:uA******** ******@tk2msftn gp13.phx.gbl...
Does anyone know of a way through asp code to drop a users application
connection and prompt them for their credentials? I would like to offer

the
ability to log into the application with different NT username and

password
with them having to close and re-open their browser. I am using basic
athentication for my application.

Thanks


Jul 19 '05 #4
Wow, that was fast. :] I'm glad it worked out. Now I know to try it if
the need ever arises for me. [:

Ray at work

"Dan Reese" <dl*****@pahous e.net> wrote in message
news:un******** ******@TK2MSFTN GP09.phx.gbl...
That was wonderful. It did exactly what I was looking for. Thank you so
very much.
"Ray at <%=sLocation% > [MVP]" <myfirstname at lane34 dot com> wrote in
message news:%2******** *******@TK2MSFT NGP09.phx.gbl.. .
Here is something that I bookmarked a while back but have never done
anything with it.
http://support.microsoft.com/?kbid=195192

As far as I know, IE will always try to automatically re-authenticate you with your previous credentials if the server prompts for authentication.

I
really bad way to get around this may be to cacls permissions away from
yourpage.asp when the user loads logout.asp, and then when he logs in as
someone else, cacls the permissions back. I don't think I'd be into doing this though...

Ray at work
"Dan Reese" <dl*****@pahous e.net> wrote in message
news:uA******** ******@tk2msftn gp13.phx.gbl...
Does anyone know of a way through asp code to drop a users application
connection and prompt them for their credentials? I would like to
offer the
ability to log into the application with different NT username and

password
with them having to close and re-open their browser. I am using basic
athentication for my application.

Thanks



Jul 19 '05 #5
Yeah tried that. Wish it would have been that easy.
"Sylvain Lafontaine" <sylvain aei ca (fill the blanks, no spam please)>
wrote in message news:%2******** ********@TK2MSF TNGP12.phx.gbl. ..
You can try Session.Abandon () .

S. L.

"Dan Reese" <dl*****@pahous e.net> wrote in message
news:uA******** ******@tk2msftn gp13.phx.gbl...
Does anyone know of a way through asp code to drop a users application
connection and prompt them for their credentials? I would like to offer

the
ability to log into the application with different NT username and

password
with them having to close and re-open their browser. I am using basic
athentication for my application.

Thanks


Jul 19 '05 #6

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

Similar topics

6
2228
by: Brian Brinks | last post by:
I am having some trouble with seesion variables. I have just moved hosting companies to Brinkster.com but have been having problems with my applications holding session. They say they can't guarantee sessions and recomend another method of storing persistant data. I questioned them on why, only on their servers, my sessions are being...
5
2193
by: ASP.Confused | last post by:
As you can tell from my previous posts on this issue...I'm really confused :-/ I have a few ASP.NET web applications on my web host's "https" server. Our web host has a single "bin" folder for me to toss my assemblies into. We keep loosing session state every few months. People have told me that my app could be running out of memory,...
13
2804
by: Alexander Widera | last post by:
hi, who has seen the follow problem or could help please? i visit a page .... i read a sesssion-var . ... everythink works...... i visit the page again..... error ... the sessionvar is null .... i visit again .... null ... again .... it works ..... again ... it works ... again ..... null....... and so on and on .... it does randomly work or...
10
3489
by: tshad | last post by:
I have been using the default session state (InProc) and have found that I have been loosing my information after a period of time (normally 20 minutes). Is there anyway to find out how much more time I have on a session? If I do a refresh, does reset the session clock? Do you have have to go to another page to reset the session timeout...
8
1736
by: ari | last post by:
hey all, i'm trying to make my app as stateless as possible. is it ok to create a dataset and store in viewstate and whenever the user decides to select a from that dataset, to move from viewstate, to session, and on the details page back to viewstate. Or does that sound like too much work? thanks, ari
3
2185
by: Chris Rathman | last post by:
I'm having problems with the Session variables disappearing between page calls and thought someone might be able to help me find the errors of my ways. The problem surfaces in two different ways: Randomly disappearing Session: I can run through the app and at random places within the page requests, the Session variable just mysteriously...
1
3406
by: Ken Varn | last post by:
My ASP.NET application has a module that needs to change the local system time on the hosting machine. I have session timeouts enabled, but I need to reset the session timeout if the local system time is changed. I don't see any means to do this. My problem is that if the system time is reset to the future, the session state will timeout. ...
3
1461
by: CBKowitz | last post by:
Has anyone encountered this problem? I start debugging my application and the session get reset (as far as I can tell). I then stop and restart and everything is fine. Basically the symptoms are as follows: after starting the application, everything is fine and the session variables are set. I get to my 'main' page and click on a button...
0
1246
by: Untitled | last post by:
Using Ajax .NET (or javascript) to auto-refresh some pages causes the Session timeout to reset. In my application I have certain panels that i would like to update every 10 seconds or so, but i don't want that to affect the timeout of the session - i still want the session to timeout after 20 min. Basically, i would like to NOT reset the...
3
4117
by: =?Utf-8?B?cm9kY2hhcg==?= | last post by:
hey all, is there another way to clear out Application Session variables besides doing an iisreset? Could you just reset the one application/virtual directory? thanks, rodchar
0
7701
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...
0
8130
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
0
6284
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5514
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...
0
5219
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...
0
3653
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...
0
3643
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2115
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
1
1223
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.