473,396 Members | 2,011 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

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.abandon% will kill both sessions,
how to I only target one?

Oct 10 '06 #1
3 2190

"Mangler" <dw******@directwireless.comwrote in message
news:11**********************@e3g2000cwe.googlegro ups.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.abandon% 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.Contents.Remove("uname") %>

Would this work the same?
Mike Brind wrote:
"Mangler" <dw******@directwireless.comwrote in message
news:11**********************@e3g2000cwe.googlegro ups.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.abandon% 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.Contents
Response.Write x & ": " & Session.Contents(x) & "<br />"
Next

--
Mike Brind

"Mangler" <dw******@directwireless.comwrote in message
news:11**********************@m7g2000cwm.googlegro ups.com...
<% Session.Contents.Remove("uname") %>

Would this work the same?
Mike Brind wrote:
>"Mangler" <dw******@directwireless.comwrote in message
news:11**********************@e3g2000cwe.googlegr oups.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.abandon% 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
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...
10
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: ...
4
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...
19
by: Jeff Clark | last post by:
Hiya! How would i get this number? thanks!
1
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...
1
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...
2
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...
18
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...
1
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...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
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...
0
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,...
0
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...
0
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...
0
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...
0
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...

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.