Home Forum NetTalk Wiki Download/Upload Links Search Fat Chat
Links

Clarion

Clarion Desktop
Capesoft

Java Script

Java Calendar

NetTalk WebServers

POSitive Connect

Clarion Sites

Pimp my Clarion

RSS Feeds

Add to MyYahoo!
Subscribe in NewsGator Online
Add to Newsburst
Add to Google
Add to My AOL
Add to Pluck
Subscribe in FeedLounge
Add to Windows Live
Add to NetVibes
Subscribe in Rojo
Subscribe in Bloglines
Add to MyMSN
Add to Plusmo for your cellphone
Add to PageFlakes
Add to Technorati
Add to BlinkBits

Site Stats

Visits today: 101
Visits yesterday: 147
Visits month: 793
Visits total: 122019
Max.monthly visits: 6414
  occurred: 2010-8
Pages this month: 3758
Pages total: 682594
Data since: 2007-06-23
NetTalk Central
September 05, 2010, 03:32:46 pm *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: Welcome to the NetTalk Central Forums!
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Browse timer  (Read 58 times)
michelis
Hero Member
*****
Posts: 581


alberto_michelis@hotmail.com
View Profile WWW Email
« on: July 29, 2010, 07:51:24 am »

I know about the problems and mi idea are to minimize it.
I have a browse which is refreshed every 9 seconds, but... it is needed in a certain period of time, lets say from 10 to 17hrs.
I know I cant stop the page from the client side, but.
What if I, at 17hs, delete all the sessions, forcing the user to loggin again.

1st Question:
-If the user do nothing, the client browser will continue sending requests to the server, the question is: having all the sessions deleted at 17, will the server respond?

Then, if the user realized it was logged out and loggin again I can set the timer to 0 and the browse will not refresh till 10hr when I again logged out all sessions
If the user logs in between 10 and 17 I set the timer to 9 secs,
If the user logs in between 17 and 10 I set the timer to 0 secs, disabling it.

2nd Question
-Can I use the browse filter to make the browse empty and modify the "No records found" message to tell the user it must logged in again?

3rd Question
-Any quick way of delete all sessions?

THanks
Alberto

Logged
Bruce
Hero Member
*****
Posts: 1814



View Profile
« Reply #1 on: July 31, 2010, 12:15:33 am »

Hi Alberto,

Deleting all the sessions sounds like a fairly drastic method. If the browse you are refreshing was "required login" then it _might_ work, but it sounds like a terrible hack.

Here's another approach;
set the timer field on the browse to a variable, say loc:timer.
right click on the procedure, and see where loc:timer is used.
Then just before that embed something like;

If clock() < 8 * 360000 or clock() > 17 * 360000
  loc:timer = 0
else
  loc:timer = 6000
end

Capiche?
Cheers
Bruce
Logged
michelis
Hero Member
*****
Posts: 581


alberto_michelis@hotmail.com
View Profile WWW Email
« Reply #2 on: July 31, 2010, 05:13:22 am »

Thanks Bruce, may be I´m confused.
I know your idea will work for a client requesting the browse, if it request the browse from 10 to 17 it has the timer and if not... not... but..
As I understand the browse refreshed only the data part but no the entire page.
Will it work with a client that has the browse open and refreshing and the time is changing from 16:59 to 17?, will the timer change for an opened browse?
And if I set the timer to 0 then it will never referesh, then the timer will never be activated again.
THanks
Alberto
« Last Edit: July 31, 2010, 06:17:23 am by michelis » Logged
Bruce
Hero Member
*****
Posts: 1814



View Profile
« Reply #3 on: July 31, 2010, 09:24:11 pm »

yes the timer will change for an opened browse.

yes, it won't _start_ again at 8am by itself. Perhaps between 17:00 and 8am you could just increase the time as much as possible, so it still polls just really really slowly.

Bruce
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC
Joomla Bridge by JoomlaHacks.com
Valid XHTML 1.0! Valid CSS!

Login Form

Welcome Guest.






Lost Password?
No account yet? Register

ClarionMag News

mod_dbrss2 AJAX RSS Reader poweredbysimplepie
home contact search contact search