Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
0

user online

New Here ,
Feb 20, 2007 Feb 20, 2007

Copy link to clipboard

Copied

user online. how do i display if the user is online

TOPICS
Server side applications

Views

1.9K
Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Feb 20, 2007 Feb 20, 2007

Copy link to clipboard

Copied

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
>
>


Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Feb 20, 2007 Feb 20, 2007

Copy link to clipboard

Copied

im using asp and database

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Feb 20, 2007 Feb 20, 2007

Copy link to clipboard

Copied

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


Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
Feb 20, 2007 Feb 20, 2007

Copy link to clipboard

Copied

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.

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Feb 22, 2007 Feb 22, 2007

Copy link to clipboard

Copied

LATEST
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.
>


Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines