HighDots Forums  

Restrict Access by Time of Day

Macromedia Dreamweaver Macromedia Dreamweaver Discussions (macromedia.dreamweaver)


Discuss Restrict Access by Time of Day in the Macromedia Dreamweaver forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Brad Lawryk
 
Posts: n/a

Default Restrict Access by Time of Day - 07-14-2004 , 12:09 PM






I have a client who's site I have done that is just for use by the companies
office across the province - not for public use. Is it possible to have it only
accessible during business hours?

Example so that staff can only access the data from 9:00am - 4:30pm?

Any help or direction would be appreciated.
Thanks,
Brad


Reply With Quote
  #2  
Old   
~Flash~
 
Posts: n/a

Default Re: Restrict Access by Time of Day - 07-14-2004 , 12:14 PM






Ah, I ran into a script that did that the other day if I can find it I'll let you know.

Flash

Reply With Quote
  #3  
Old   
darrel
 
Posts: n/a

Default Re: Restrict Access by Time of Day - 07-14-2004 , 12:36 PM



Quote:
Example so that staff can only access the data from 9:00am - 4:30pm?
You could every page check the server time and if it's outside of that time
period than redirect to a 'not available' page.

That said, why would they want to do this? What if someone wants to work
late or telecommute?

-Darrel




Reply With Quote
  #4  
Old   
Brad Lawryk
 
Posts: n/a

Default Re: Restrict Access by Time of Day - 07-14-2004 , 12:57 PM



Thanks! That would be very much appreciated!

Reply With Quote
  #5  
Old   
darrel
 
Posts: n/a

Default Re: Restrict Access by Time of Day - 07-14-2004 , 01:45 PM




Quote:
Thanks! That would be very much appreciated!
What server-side language are you using?

-Darrel




Reply With Quote
  #6  
Old   
Brad Lawryk
 
Posts: n/a

Default Re: Restrict Access by Time of Day - 07-14-2004 , 02:04 PM



I guess I should have mentioned that ;-)

PHP and mySQL

Reply With Quote
  #7  
Old   
darrel
 
Posts: n/a

Default Re: Restrict Access by Time of Day - 07-14-2004 , 03:32 PM



Quote:
PHP and mySQL
Ah...sorry, can't help you there, but, in pseudo code, it'd look like this:

get current date/time from server
if (date/time < "am open time") or (date/time > "pm close time") then
page redirect to 'sorryWe'reClosed.htm'
else
end if

Again, though, this just seems like a really odd request from the client.

-Darrel




Reply With Quote
  #8  
Old   
Brad Lawryk
 
Posts: n/a

Default Re: Restrict Access by Time of Day - 07-14-2004 , 06:38 PM



Originally posted by: Newsgroup User
Again, though, this just seems like a really odd request from the client.

Yeah they have very good reason to do it though. Because of the nature of the
content they do not want staff accessing it off hours. Basically its a
goverment program that contains personal information of thousands of people.
They have to be careful who has access and when. But yeah, normally its a
strange request.




Reply With Quote
  #9  
Old   
Gary White
 
Posts: n/a

Default Re: Restrict Access by Time of Day - 07-15-2004 , 12:26 AM



Brad Lawryk wrote:

Quote:
Yeah they have very good reason to do it though. Because of the nature of the
content they do not want staff accessing it off hours. Basically its a
goverment program that contains personal information of thousands of people.
They have to be careful who has access and when. But yeah, normally its a
strange request.
You said:
Quote:
Example so that staff can only access the data from 9:00am - 4:30pm?
In what time zone? User? Server? GMT?


Gary


Reply With Quote
  #10  
Old   
Brad Lawryk
 
Posts: n/a

Default Re: Restrict Access by Time of Day - 07-15-2004 , 12:41 AM



Hi Gary,

All the offices and servers are on Pacific Time .... so PST would be the correct time zone for everything.

Brad

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.