473,788 Members | 2,988 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Checking for ASP Session IDs

Is there a way to query a webserver to see how many, and which, ASP Session
ID numbers are still current? (ie: not expired).

I'm working on a way to track active Website visitors & wish to compare a
Log of Session ID's against those that the Server would recognise as still
active.

Any help would be appreciated.
Andrew

Jul 19 '05 #1
6 2242
If the sessions exist, they're considered active, no?

Ray at work

"Andrew" <a.*********@lo wery.co.uk> wrote in message
news:O7******** ******@TK2MSFTN GP11.phx.gbl...
Is there a way to query a webserver to see how many, and which, ASP Session ID numbers are still current? (ie: not expired).

I'm working on a way to track active Website visitors & wish to compare a
Log of Session ID's against those that the Server would recognise as still
active.

Any help would be appreciated.
Andrew

Jul 19 '05 #2
Yes thats very true but I'm looking to get a 'list' of Session ID's that are
active. So far I've only been able to read Session info from within that
active Session.

Is there a way to 'see' these active sessions on the server? Maybe a log
etc..?

Andrew
"Ray at <%=sLocation% >" <myfirstname at lane34 dot com> wrote in message
news:eq******** ******@TK2MSFTN GP10.phx.gbl...
If the sessions exist, they're considered active, no?

Ray at work

"Andrew" <a.*********@lo wery.co.uk> wrote in message
news:O7******** ******@TK2MSFTN GP11.phx.gbl...
Is there a way to query a webserver to see how many, and which, ASP

Session
ID numbers are still current? (ie: not expired).

I'm working on a way to track active Website visitors & wish to compare a Log of Session ID's against those that the Server would recognise as still active.

Any help would be appreciated.
Andrew


Jul 19 '05 #3

"Andrew" <a.*********@lo wery.co.uk> wrote in message
news:O7******** ******@TK2MSFTN GP09.phx.gbl...

Is there a way to 'see' these active sessions on the server? Maybe a log
etc..?

Andrew


AFAIK, no. Can someone confirm?

Ray at work
Jul 19 '05 #4
Performance monitor can track how many asp sessions are active but you
cannot get the session ids or see "into" any of the sessions.

--
Mark Schupp
Head of Development
Integrity eLearning
www.ielearning.com
"Ray at <%=sLocation% >" <myfirstname at lane34 dot com> wrote in message
news:OY******** ******@TK2MSFTN GP09.phx.gbl...

"Andrew" <a.*********@lo wery.co.uk> wrote in message
news:O7******** ******@TK2MSFTN GP09.phx.gbl...

Is there a way to 'see' these active sessions on the server? Maybe a log
etc..?

Andrew


AFAIK, no. Can someone confirm?

Ray at work

Jul 19 '05 #5
You can write them to a database and timestamp them (every time a page is
requested write the Session and current date/time). This will give you some
data to play with. Then for any session id, at any given time you can
compare the last timestamp to that time + the Session Timeout setting to see
if that session has expired. Still not completely accurate though...
"Mark Schupp" <ms*****@ielear ning.com> wrote in message
news:O2******** ******@TK2MSFTN GP09.phx.gbl...
Performance monitor can track how many asp sessions are active but you
cannot get the session ids or see "into" any of the sessions.

--
Mark Schupp
Head of Development
Integrity eLearning
www.ielearning.com
"Ray at <%=sLocation% >" <myfirstname at lane34 dot com> wrote in message
news:OY******** ******@TK2MSFTN GP09.phx.gbl...

"Andrew" <a.*********@lo wery.co.uk> wrote in message
news:O7******** ******@TK2MSFTN GP09.phx.gbl...

Is there a way to 'see' these active sessions on the server? Maybe a log etc..?

Andrew


AFAIK, no. Can someone confirm?

Ray at work


Jul 19 '05 #6
...."every time a page is requested write the Session" - should be "Session
ID"

[stupid Outlook spell checker !]
"Mike Florio" <mi**@micro-point.com> wrote in message
news:vo******** ****@corp.super news.com...
You can write them to a database and timestamp them (every time a page is
requested write the Session and current date/time). This will give you some data to play with. Then for any session id, at any given time you can
compare the last timestamp to that time + the Session Timeout setting to see if that session has expired. Still not completely accurate though...
"Mark Schupp" <ms*****@ielear ning.com> wrote in message
news:O2******** ******@TK2MSFTN GP09.phx.gbl...
Performance monitor can track how many asp sessions are active but you
cannot get the session ids or see "into" any of the sessions.

--
Mark Schupp
Head of Development
Integrity eLearning
www.ielearning.com
"Ray at <%=sLocation% >" <myfirstname at lane34 dot com> wrote in message
news:OY******** ******@TK2MSFTN GP09.phx.gbl...

"Andrew" <a.*********@lo wery.co.uk> wrote in message
news:O7******** ******@TK2MSFTN GP09.phx.gbl...

>
> Is there a way to 'see' these active sessions on the server? Maybe a log > etc..?
>
> Andrew

AFAIK, no. Can someone confirm?

Ray at work



Jul 19 '05 #7

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

Similar topics

18
1777
by: Domestos | last post by:
Hi all, How do I check in a mySQL table called 'Users' on column user_name when registering a new user_name to make sure the new 'user_name' does not already exist in that column? TIA
1
1344
by: Alistair | last post by:
hi folks (and folkesses) is it possible to create a session cookie and then test for the existence of that session cookie on another page? basically, what I'm trying to do is a sort of buddy list. When someone logs in (lets say Dave) a session cookie (dave) is created, then along comes bob, when bob logs in, he could see that Dave is logged on because a test for session.cookie in Dave's name is true.
3
1757
by: Phil Lamey | last post by:
Hi Folks, I have run into a bit of an issue with checking for files. Some files reside on Server X and some on Server Y. The page with all the links is on Server X. If the file exists we display a link, if it does not then we display "sorry not yet available". For the files on server X it is no problem I use an FSO and don't have a problem. For files on server Y I am having a big problem.
2
1175
by: tshad | last post by:
I was looking at different ways of doing the same thing and at the moment was looking at the use of "is" and "=", as I have at times found that I will do something like if something = 0 and will get an error that says I can't use "=" (or <>) in this case case I must use "is" ( or not something is). I am trying to find out when this is the case - when I can use the "=" and when I have to use "is.
4
4050
by: Jeff | last post by:
I have a vb.net application (2005) requiring session variables and want to test to make certain that the user's cookies are enabled. I can set a test session variable on one page and attempt to read it on the next with the code below in order to determine if the user has their browser's cookies enabled, but is there a good way to do this on the first/default page without a redirect to another page that will actually do the test? Thanks
4
1320
Bob Ross
by: Bob Ross | last post by:
I'm sure I know the answer to this already but.... Does anyone know a good way of checking if cookies are enabled on a browser? I currently have If Request.QueryString("Trying") = "" Then Session.Add("SessionCookie", "ON") Response.Redirect(Request.Path & "?Trying=ON", True) Else If Session("SessionCookie") = "" Then
1
1115
by: navaneethkn | last post by:
Hello I created a class which checks session and redirects to login page. My class looks like this. This class inherits Page class to get access to Session object. 1 public class CAuthentication:System.Web.UI.page 2 { 3 public CAuthentication() 4 { 5 if ( Session == null ) 6 Response.Redirect("expired.aspx");
2
1754
by: momogi | last post by:
Hi theScripts! I have a problem with my session. When user login in my site, the session will save the user name and password. In my Login.php I have: session_start(); $qr="SELECT*FROM tbllogin WHERE nama='$_POST' AND password='$_POST' "; $res=mysql_query($qr); $row=mysql_fetch_assoc($res); $num=mysql_num_rows($hasil);
1
945
by: =?Utf-8?B?V2FubmFiZQ==?= | last post by:
When a user submits a page, I want to make sure their session has not expired. I am using the code below to check, but it seems that Context.Session is always null. Am I doing something wrong? I have this code in the page load event on a base page that is being inherited by all my forms pages. if (Context.Session != null) { if (Session.IsNewSession) Response.Redirect("~/sessionExpired.aspx");
0
9498
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
10110
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
9967
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
8993
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
7517
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
5398
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
5536
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4069
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
3
2894
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.