Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASPState, getting sessions accessed in last 20 mins.

Reply
Thread Tools

ASPState, getting sessions accessed in last 20 mins.

 
 
Ronnie R
Guest
Posts: n/a
 
      01-04-2010
Hi there,

I've written a query that I'm going to use to see the users that have had
'activity' in the last '20' minutes on my site.

SELECT * from [ASPState].[dbo].[ASPStateTempSessions]
where LockDate > DATEADD(MINUTE, -20, GETDATE())

It appears to do the job, but I'm assuming LockDate is a good column to use.

Any thoughts people? Thanks


 
Reply With Quote
 
 
 
 
Gregory A. Beamer
Guest
Posts: n/a
 
      01-04-2010
=?Utf-8?B?Um9ubmllIFI=?= <> wrote in
news:46E7B34C-7997-430A-B251-:

>
> Any thoughts people?


LockDate should get the last access, so that is as good as any method.

Peace and Grace,

--
Gregory A. Beamer (MVP)

Twitter: @gbworld
Blog: http://gregorybeamer.spaces.live.com

*******************************************
| Think outside the box! |
*******************************************
 
Reply With Quote
 
 
 
 
Ronnie R
Guest
Posts: n/a
 
      01-05-2010
Thanks Gregory, your answer appreciated

"Gregory A. Beamer" wrote:

> =?Utf-8?B?Um9ubmllIFI=?= <> wrote in
> news:46E7B34C-7997-430A-B251-:
>
> >
> > Any thoughts people?

>
> LockDate should get the last access, so that is as good as any method.
>
> Peace and Grace,
>
> --
> Gregory A. Beamer (MVP)
>
> Twitter: @gbworld
> Blog: http://gregorybeamer.spaces.live.com
>
> *******************************************
> | Think outside the box! |
> *******************************************
> .
>

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How long since a session was last accessed? DamienS ASP .Net 8 04-26-2009 11:59 PM
Date last Accessed vs Date Modified Roedy Green Java 1 02-22-2008 09:41 AM
User last accessed? Rob R. Ainscough ASP .Net 1 06-01-2006 06:35 PM
How to read file attribute "last accessed" with plain java Hannes Heckner Java 4 06-17-2004 07:02 PM
Re: Relationship between IIS Sessions and ASP.NET Sessions? Ken Cox [Microsoft MVP] ASP .Net 1 08-08-2003 03:22 PM



Advertisments