Login/Real Time Updating
Posted: 21 August 2004 01:12 PM   [ Ignore ]  
Summer Student
Total Posts:  3
Joined  08-21-2004

Hello,

I am new to web design and I am trying to find a way that allows “real time” virtually instant page updating.

The reason for this real time page updating is to show buy and sell points for my customers intraday futures trading (I would enter data on my side and it would show up on my customers web browser without them have to hit refresh).

I do not know if I would have to create a server/client JAVA web application or if PHP, Coldfusion, or other would be simpler to create from or if pMachine/EE (hoping) has this capability.

Any help would be greatly appreciated. Your program looks promising for my needs but I need to know if it can help create the above “real time” updating page.

Also, I would need to create a login page with password that would be compared to a database to prevent multiple logins per user data.

Thank you in advance.

RickAce

Profile
 
 
Posted: 21 August 2004 01:56 PM   [ Ignore ]   [ # 1 ]  
Moderator
Avatar
RankRankRankRankRankRankRank
Total Posts:  12273
Joined  04-29-2002

RickAce, EE and pMachine support a unique email address login registration, but not neccessarily a “unique” login for that email address.

In other words, I could be one page a on one machine/browser, and open a different brower where the cookies aren’t there, and I’d still be allowed to be logged in. Or if I went to another machine on my network.

You’d have to use some sort of page refreshing mechanism to force page update.


<META HTTP-EQUIV=Refresh CONTENT=“5; URL=<?php print $PHP_SELF ?>”>

is five seconds.

 Signature 

Quick Reference - EE Trial Options - EE Wiki - Docs for updating a build

Profile
MSG
 
 
Posted: 21 August 2004 02:10 PM   [ Ignore ]   [ # 2 ]  
Summer Student
Total Posts:  3
Joined  08-21-2004

Sue,

Thank you for your responce.

So EE and pMachine does not have the capability to check a user’s name and password against a database (mySQL) to prevent access sharing? Could I achevie this using another method?

How does one publish using “EE and pMachine”?

I look forward to any comments.

Thank you.

Profile
 
 
Posted: 21 August 2004 03:07 PM   [ Ignore ]   [ # 3 ]  
Moderator
Avatar
RankRankRankRankRankRankRank
Total Posts:  12273
Joined  04-29-2002

There is a logged in table which has the ip address of who is logged in. You could write code to check against that.

But it really isn’t practical, due to the nature of multiple browsers, cookies, that sort of thing.

If Mary Smith logs in, and forgets to close her browser, and goes over to a second machine on her network, is it supposed to tell her—sorry, someone is already logged in as you?

That would require coding on your part.

In EE and pMachine you publish via a control panel interface.

You can publish via email as well.

 Signature 

Quick Reference - EE Trial Options - EE Wiki - Docs for updating a build

Profile
MSG
 
 
Posted: 21 August 2004 03:58 PM   [ Ignore ]   [ # 4 ]  
Research Scientist
Avatar
RankRankRankRankRankRank
Total Posts:  7534
Joined  08-05-2002

First, EE does have the ability to not allow multiple logins from the same account.  Or in other words, if someone is still logged into their account on one computer, they cannot log into another computer with that same account until they are logged out of the first computer.  This ability is located is in the Security and Session Preferences area and only is useable when session type is set for Cookies and Session IDs OR Session IDs.

Now, as for real time updating.  PHP is a server side programming language, which means all of the processing is done on the server before the page is displayed.  To have a browser page dynamically update without a reload, you would have to do something with javascript like the LiveSearch described in this forum post.

 Signature 
Profile
 
 
Posted: 21 August 2004 06:05 PM   [ Ignore ]   [ # 5 ]  
Moderator
Avatar
RankRankRankRankRankRankRank
Total Posts:  12273
Joined  04-29-2002

I had forgotten about using session ids.smile

 Signature 

Quick Reference - EE Trial Options - EE Wiki - Docs for updating a build

Profile
MSG
 
 
Posted: 22 August 2004 09:29 AM   [ Ignore ]   [ # 6 ]  
Summer Student
Total Posts:  3
Joined  08-21-2004

Paul,

Thank you for your comments.

So EE and/or pMachine have nothing built in that would accomplish my goal - I would have to alter the code “LiveSearch” in some way to get to my desired “no refresh” dynamic web page.

This may be redundant: What I am trying to acheive is that when I hit “Publish” all users would see their web page update without having to hit refresh - I know I could add refresh code to the web page (such as every 5 seconds) but I was hoping there was a way that refresh would occur when I published a new comment.

I look forward to any comments/suggestions you may have.

Sincerely,


RickAce

Profile
 
 
Posted: 22 August 2004 04:59 PM   [ Ignore ]   [ # 7 ]  
Research Scientist
Avatar
RankRankRankRankRankRank
Total Posts:  7534
Joined  08-05-2002

EE nor pMachine, nor any other system that I know of has, this feature where the browsers of all currently logged in users is refreshed on the creation of new content.  It really has to be done via javascript and the LiveSearch way because the browser has to know when new content is added, and the only way that content can be changed without refreshing is via javascript.  Probably the best idea would be to have the LiveSearch modified to look at a template where the time of the most recent comment or post is put.  The javascript checks against the current time and if it is since the last page refresh, it refreshes the page.  Not an overly complicated bit of code, but it would take some work.

 Signature 
Profile
 
 
Posted: 22 August 2004 05:23 PM   [ Ignore ]   [ # 8 ]  
Moderator
Avatar
RankRankRankRankRankRankRankRank
Total Posts:  32775
Joined  05-14-2004

RickAce - I have no links, _however_ there are shoutboxes I’ve seen (such as webfroots shoutbox in alpha) that have the ability to update everyones screen when one person submits a “shout”. 

If you go through www.hotscripts.com and look for shoutboxes that do that, you may find some example code that you could adapt to your purpose.

That’s just something I’ve seen in passing, so I don’t have more details.  Hope it helps though!

 Signature 
Profile
MSG
 
 
   
 
 
Post Marker Legend
New Topic New posts Hot Topic Hot Topic with new posts New Poll New Poll Moved Topic Moved Topic Sticky Topic Sticky topic
Old Topic No new posts Hot Old Topic Hot Topic with no new posts Old Poll Old Poll Closed Topic Closed Topic Announcement Announcements
Theme
Change Theme
Visitor Statistics
The most visitors ever was 1149, on July 16, 2007 09:33 AM
Total Registered Members: 64549 Total Logged-in Users: 27
Total Topics: 81145 Total Anonymous Users: 19
Total Replies: 436551 Total Guests: 197
Total Posts: 517696    
Members ( View Memberlist )