473,785 Members | 2,374 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Multiple sessions, how to kill only one

I have 2 sessions that get created. One when the user logs in called
"uname" and another called "idrma" when that user choses to begin a
repair request. I know <%session.aband on% will kill both sessions,
how to I only target one?

Oct 10 '06 #1
3 2205

"Mangler" <dw******@direc twireless.comwr ote in message
news:11******** **************@ e3g2000cwe.goog legroups.com...
>I have 2 sessions that get created. One when the user logs in called
"uname" and another called "idrma" when that user choses to begin a
repair request. I know <%session.aband on% will kill both sessions,
how to I only target one?
You mean two session VARIABLES.

To create a session variable: Session("Uname" ) = "Some value"

To "kill" it: Session("Uname" ) = ""

--
Mike Brind
Oct 10 '06 #2
<% Session.Content s.Remove("uname ") %>

Would this work the same?
Mike Brind wrote:
"Mangler" <dw******@direc twireless.comwr ote in message
news:11******** **************@ e3g2000cwe.goog legroups.com...
I have 2 sessions that get created. One when the user logs in called
"uname" and another called "idrma" when that user choses to begin a
repair request. I know <%session.aband on% will kill both sessions,
how to I only target one?

You mean two session VARIABLES.

To create a session variable: Session("Uname" ) = "Some value"

To "kill" it: Session("Uname" ) = ""

--
Mike Brind
Oct 10 '06 #3
Yes. No. My method retains the session variable, but sets its value to an
empty string. Yours removes it altogether from the collection.

You can test the content/value of your session variables like this:

For each x in Session.Content s
Response.Write x & ": " & Session.Content s(x) & "<br />"
Next

--
Mike Brind

"Mangler" <dw******@direc twireless.comwr ote in message
news:11******** **************@ m7g2000cwm.goog legroups.com...
<% Session.Content s.Remove("uname ") %>

Would this work the same?
Mike Brind wrote:
>"Mangler" <dw******@direc twireless.comwr ote in message
news:11******* *************** @e3g2000cwe.goo glegroups.com.. .
>I have 2 sessions that get created. One when the user logs in called
"uname" and another called "idrma" when that user choses to begin a
repair request. I know <%session.aband on% will kill both sessions,
how to I only target one?

You mean two session VARIABLES.

To create a session variable: Session("Uname" ) = "Some value"

To "kill" it: Session("Uname" ) = ""

--
Mike Brind

Oct 10 '06 #4

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

Similar topics

13
12052
by: jing_li | last post by:
Hi, you all, I am a newbee for php and I need your help. One of my coworker and I are both developing a webpage for our project using php. We have a copy of the same files in different location on the server (in our own accounts on the same machine). When I am testing both versions of our program using the same browser (IE on Windows or Konqueror on Linux) the session variables will mix up and only the latest selection or options will...
10
1959
by: Marcus | last post by:
Hi All, First, just wanted to say that I found what I thought was a very helpful tutorial on sessions in case anyone out there has questions on them: http://www.free2code.net/tutorials/programming/php/4/sessions.php I've been using sessions for quite some time but only after reading this do I really understand what is going on on both the client and server side.
4
31201
by: john | last post by:
How do u guys handle multiple sessions?? i.e, opening different browser windows by running iexplore.exe or clicking IE icons and opening the application. My sessions are mixing up. what i mean is suppose i log in my site using username "test". At this time I set $_SESSION="test". And I use $_SESSION inside my application to print the username. Now if I open another browser & log in with "another test" the session
19
7888
by: Jeff Clark | last post by:
Hiya! How would i get this number? thanks!
1
1986
by: Roberto Kohler | last post by:
Is there a way for an administrator to terminate ASP sessions if I know the ASP Session IDs that I want to terminate? Session.Abandon only works on the caller's session. Is there something like Session.Kill(SessionID) ?
1
3510
by: Rob | last post by:
I have an ASP.NET application that uses forms-based authentication. A user wishes to be able to run multiple sessions of this application simultaneously from the user's client machine. The web.config file is configured as such: <authentication mode="Forms"> <forms loginUrl="Login.aspx" protection="All" name="myApplication"/> </authentication>
2
2349
by: tbone | last post by:
In trying to improve the throughput of a classic ASP app I wrote last year, I added monitoring to the application and session start and end methods. For one, I'm counting the total number of sessions and the high water mark. My monitoring has revealed a few interesting things. 1. The ASP application is being shutdown and restarted almost daily. The hosting company swears that neither the machine (shared server) nor IIS nor the...
18
3397
by: Gleep | last post by:
I've searched google intensely on this topic and it seems noone really knows how to approch this. The goal I don't want clients to give out their usernames and passwords to friends, since the site relies on subscrption fees. Sessions ID's are matched between the browser and the server. So a users can login with same username and password and those sessions are tracked individually. Some suggest create table fields with the session ID...
1
7140
by: Ming | last post by:
Hi all, I wonder if there is a way to kill all active sessions. Basically, I want to have a page, for example, foo.php. Whenever users visit this page, regardless of where they come from, all sessions that are from my site will be destroyed. Thanks,
0
9646
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
10346
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...
0
9956
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...
0
8982
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 launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7504
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
5386
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
5514
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4055
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
2
3658
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.