Skip to main content
Known Participant
February 20, 2007
Question

user online

  • February 20, 2007
  • 5 replies
  • 1906 views
user online. how do i display if the user is online

This topic has been closed for replies.

5 replies

Inspiring
February 22, 2007
While this method works it suffers for a fundamental flaw in that it relies
on you visitor exiting from a set page. The approach more commonly taken
uses Global.asa to track sessions as in that way it keeps checking for the
actual number of visitors.

--
Paul Whitham
Certified Dreamweaver MX2004 Professional
Adobe Community Expert - Dreamweaver

Valleybiz Internet Design
www.valleybiz.net

"envision3d" <webforumsuser@macromedia.com> wrote in message
news:ergn9j$2eh$1@forums.macromedia.com...
> have a field in your user table to keep track of the login info, something
> like
> LOGIN and the datatype can be number(access) or bit(SQL), it will store
> only 0
> or 1. 0 not logged in, 1 logged in.
>
> Then on your login form where your user logs in add a sub routine to
> update
> that users column from 0 to 1 upon a successful login.
>
> On any other page you can create your graphic or whatever to show they are
> logged in. You do this by creating a recordset of the user.
>
> Then wrap you "online" graphic/text around an IF statement, saying
>
> if rs.fields.item("login") = 1 then
> show the graphic/text
> else
> the user is not logged in
> end if.
>
> On your signout page make sure you put a subroutine that sets that users
> LOGIN
> value from 1 back to 0.
>


Inspiring
February 21, 2007
have a field in your user table to keep track of the login info, something like LOGIN and the datatype can be number(access) or bit(SQL), it will store only 0 or 1. 0 not logged in, 1 logged in.

Then on your login form where your user logs in add a sub routine to update that users column from 0 to 1 upon a successful login.

On any other page you can create your graphic or whatever to show they are logged in. You do this by creating a recordset of the user.

Then wrap you "online" graphic/text around an IF statement, saying

if rs.fields.item("login") = 1 then
show the graphic/text
else
the user is not logged in
end if.

On your signout page make sure you put a subroutine that sets that users LOGIN value from 1 back to 0.
Inspiring
February 21, 2007
Have a look at www.aspin.com and I am sure that they have a script that can
do this.

--
Paul Whitham
Certified Dreamweaver MX2004 Professional
Adobe Community Expert - Dreamweaver

Valleybiz Internet Design
www.valleybiz.net

"rob dalton" <webforumsuser@macromedia.com> wrote in message
news:erfo29$b0g$1@forums.macromedia.com...
> im using asp and database


Known Participant
February 20, 2007
im using asp and database
Inspiring
February 20, 2007
WHat language? I have it implemented just fine using CF. Very easy to do.

Brendon

"rob dalton" <webforumsuser@macromedia.com> wrote in message
news:erfl47$7kn$1@forums.macromedia.com...
> user online. how do i display if the user is online
>
>