close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Show users online

Thread began 2/28/2012 11:17 am by daniel387105 | Last modified 3/05/2012 7:38 am by Jason Byrnes | 1263 views | 3 replies |

daniel387105

Show users online

Hi

is there a way to show live when a users is online? i want to be able to see who is signed in and show that information live?

Thanks

Sign in to reply to this post

Jason ByrnesWebAssist

this is not at all easy to do and is not supported.

you would need to create a table that stores the ID of each user using an insert behavior when they log in, that parts pretty easy.

you also need to delete the record when they log out, this is the hard part because there are a number of different things that can happen to log the user out.

the user could go to the logout page and click the logout, we can use this to trigger code to delete the record.

the user could leave the computer and the login session times out - no way to trigger code to delete the record this way

the user could close the browser to end the session - no way top trigger code here either

so 2 out 3 ways to logout leave the record stranded in the database and the user appears to be logged in, but in reality, they are not.

Sign in to reply to this post

dvan_zelst

Can you not just show the needed information from every login session created on the server? Sessions are created on the server side from every user that login,right? So i guess it should be somehow possible to retrieve the name or ID within each session created and list them live as long as the session exist.

Just an idea though, maybe i'm wrong thinking :-)

Dave

Sign in to reply to this post

Jason ByrnesWebAssist

technically, you are correct, but in practice doing that is a nightmare for a number of reasons.

one being that the format of the ses_* files created in the session.save_path is known to change from version to version of php, even in minor version updates.


In some instances, the php server may be configured to persist session data in memory, therefore, wont create the ses_* files.

In any case, this is not functionality supported by security assist.

Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...