473,387 Members | 1,493 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,387 software developers and data experts.

Sessions Information

Hello,

I am developing a dating site, What I am trying to do is;

When one of my members logins, should see how many users online, and should
see which users online when searching and listing other users..

I think I should work on "Session" and I must reach all the sessions
informations.. ?

What s the way?

Thanks
Jun 15 '06 #1
2 969
> I am developing a dating site, What I am trying to do is;
When one of my members logins, should see how many users online, and should
see which users online when searching and listing other users..
I think I should work on "Session" and I must reach all the sessions
informations.. ?


You should not [and cannot easily] access the Session object for other
sessions than the one for the context under which the page is
executing. Instead, you could keep a centralised record of the number
and perhaps names of online users, for example in the Application
object. When a session is started [specifically, when a user signs in],
you can add their name to a list variable such as
Application["CurrentUsers"], which would be accessible from anywhere
you wanted to see the data. When they log off, or the global session
end event is fired, you can remove the relevant user from the list. It
might be more efficient to store whether each user is online in their
database record, and just to keep a count of the total number in
memory.

-- PH

Jun 16 '06 #2
"Coder" <Co***@Coder.Code>'s wild thoughts were released on
Fri, 16 Jun 2006 00:44:15 +0300 bearing the following fruit:
Hello,

I am developing a dating site, What I am trying to do is;

When one of my members logins, should see how many users online, and should
see which users online when searching and listing other users..

I think I should work on "Session" and I must reach all the sessions
informations.. ?

What s the way?


If I understand you, then you should be able to achive what
you want with

Membership.GetNumberOfUsersOnline

Membership.GetAllUsers

Jan Hyde (VB MVP)

--
It's easy to distract fat people. It's a piece of cake.

Jun 16 '06 #3

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

Similar topics

1
by: windandwaves | last post by:
Hi Gurus I am basically sorry that I have to bother you about this. I am a PHP beginner and I have been studying sessions and cookies over the last few weeks. I have learned lots, but I am...
6
by: Daniel Walzenbach | last post by:
Hi, I have a web application which sometimes throws an “out of memory” exception. To get an idea what happens I traced some values using performance monitor and got the following values (for...
3
by: AlonR | last post by:
Hi, We're experiencing random user sessions losses on our web applications, and are researching for any useful information which may shed light on this problem. Environment: In our...
13
Frinavale
by: Frinavale | last post by:
One of the most fundamental topics in web design is understanding how to pass information collected on one web page to another web page. There are many different ways you could do this: Cookies,...
3
Atli
by: Atli | last post by:
Introduction: Sessions are one of the simplest and more powerful tools in a web developers arsenal. This tool is invaluable in dynamic web page development and it is one of those things every...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
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...

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.