473,766 Members | 2,035 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

poissble to automate access time?

Hello

Is it possibel to automate the access time allowed to a folder? I am
using .htpasswd etc and would like to give say 0.5 hour access to
users so that they can sample documents available on the web site...

Cheers

Geoff
Jul 20 '05 #1
10 1931
Tim
On Thu, 29 Jan 2004 09:24:06 GMT,
Geoff Cox <ge*******@dont spamblueyonder. co.uk> wrote:
Is it possible to automate the access time allowed to a folder? I am
using .htpasswd etc and would like to give say 0.5 hour access to
users so that they can sample documents available on the web site...


Not normally. You'd need to come up with some non-standard solution
(such as some well thought out scripting on your server), as HTTP
doesn't have any way of logging off users. You really wouldn't have
some way of preventing users from logging back on again.

The usual way of tracking users is to play with cookies. e.g. You might
send one, keep checking on it as they peruse they site, then decide
after it's aged a certain amount to treat them differently.

Of course, this won't work if they won't accept the cookies, and
refusing to let people in because they refuse your cookies just means
that you're going to annoy people.

--
My "from" address is totally fake. The reply-to address is real, but
may be only temporary. Reply to usenet postings in the same place as
you read the message you're replying to.

This message was sent without a virus, please delete some files yourself.
Jul 20 '05 #2
Geoff Cox <ge*******@dont spamblueyonder. co.uk> wrote in
news:h0******** *************** *********@4ax.c om:
Hello

Is it possibel to automate the access time allowed to a folder? I am
using .htpasswd etc and would like to give say 0.5 hour access to
users so that they can sample documents available on the web site...


Use server-side tools. For example, use PHP and sessions.

--
Dave Patton
Canadian Coordinator, Degree Confluence Project
http://www.confluence.org/
My website: http://members.shaw.ca/davepatton/
Jul 20 '05 #3

"Tim" <Ti*@mail.local host> wrote in message
news:uh******** *************** *********@4ax.c om...
On Thu, 29 Jan 2004 09:24:06 GMT,
Geoff Cox <ge*******@dont spamblueyonder. co.uk> wrote:
Is it possible to automate the access time allowed to a folder? I am
using .htpasswd etc and would like to give say 0.5 hour access to
users so that they can sample documents available on the web site...


Not normally. You'd need to come up with some non-standard solution
(such as some well thought out scripting on your server), as HTTP
doesn't have any way of logging off users. You really wouldn't have
some way of preventing users from logging back on again.

The usual way of tracking users is to play with cookies. e.g. You might
send one, keep checking on it as they peruse they site, then decide
after it's aged a certain amount to treat them differently.

Of course, this won't work if they won't accept the cookies, and
refusing to let people in because they refuse your cookies just means
that you're going to annoy people.


Some people are annoyed by *any* conditions of use of *anything* that
amounts to something other than permanent, free, and unlimited access.
That's just tough. do I understand that the difference here is not just a
matter of getting a user's agreement to a set of conditions, but of getting
him to change a setting in his browser that he likes having for good
reasons. Personally, I operate in "prompt me" mode in IE for persistent
cookies, which results in a lot of annoyance, but in the end I get to tell
DoubleClick to go to hell, while letting Amazon recognize me when I return
without having to look up my user name password again. And if I wanted to
try this person's site, and this was his condition of use, then if I was
sufficiently interested I'd click "Sure, go ahead, take it."

However, I think that any site that wants to leave a persistent cookie
should explain in advance why, and should let me know just what the
information is that they're storing (which I can then verify) and how they
plan to use it.

Jul 20 '05 #4
On Thu, 29 Jan 2004 12:43:38 GMT, Dave Patton <no**@none.co m> wrote:
Geoff Cox <ge*******@dont spamblueyonder. co.uk> wrote in
news:h0******* *************** **********@4ax. com:
Hello

Is it possibel to automate the access time allowed to a folder? I am
using .htpasswd etc and would like to give say 0.5 hour access to
users so that they can sample documents available on the web site...


Use server-side tools. For example, use PHP and sessions.


Dave

thanks for the reply - could you point me at any info on how to do
this?

Thanks again

Geoff
Jul 20 '05 #5
On Thu, 29 Jan 2004 10:54:40 -0500, "Harlan Messinger"
<h.*********@co mcast.net> wrote:

"Tim" <Ti*@mail.local host> wrote in message
news:uh******* *************** **********@4ax. com...
On Thu, 29 Jan 2004 09:24:06 GMT,
Geoff Cox <ge*******@dont spamblueyonder. co.uk> wrote:
> Is it possible to automate the access time allowed to a folder? I am
> using .htpasswd etc and would like to give say 0.5 hour access to
> users so that they can sample documents available on the web site...


Not normally. You'd need to come up with some non-standard solution
(such as some well thought out scripting on your server), as HTTP
doesn't have any way of logging off users. You really wouldn't have
some way of preventing users from logging back on again.
Harlan

thanks for the info - looks like a no go !

Cheers

Geoff

The usual way of tracking users is to play with cookies. e.g. You might
send one, keep checking on it as they peruse they site, then decide
after it's aged a certain amount to treat them differently.

Of course, this won't work if they won't accept the cookies, and
refusing to let people in because they refuse your cookies just means
that you're going to annoy people.


Some people are annoyed by *any* conditions of use of *anything* that
amounts to something other than permanent, free, and unlimited access.
That's just tough. do I understand that the difference here is not just a
matter of getting a user's agreement to a set of conditions, but of getting
him to change a setting in his browser that he likes having for good
reasons. Personally, I operate in "prompt me" mode in IE for persistent
cookies, which results in a lot of annoyance, but in the end I get to tell
DoubleClick to go to hell, while letting Amazon recognize me when I return
without having to look up my user name password again. And if I wanted to
try this person's site, and this was his condition of use, then if I was
sufficiently interested I'd click "Sure, go ahead, take it."

However, I think that any site that wants to leave a persistent cookie
should explain in advance why, and should let me know just what the
information is that they're storing (which I can then verify) and how they
plan to use it.


Jul 20 '05 #6
Geoff Cox <ge*******@dont spamblueyonder. co.uk> wrote in
news:hn******** *************** *********@4ax.c om:
On Thu, 29 Jan 2004 12:43:38 GMT, Dave Patton <no**@none.co m> wrote:
Geoff Cox <ge*******@dont spamblueyonder. co.uk> wrote in
news:h0****** *************** ***********@4ax .com:
Hello

Is it possibel to automate the access time allowed to a folder? I am
using .htpasswd etc and would like to give say 0.5 hour access to
users so that they can sample documents available on the web site...


Use server-side tools. For example, use PHP and sessions.


Dave

thanks for the reply - could you point me at any info on how to do
this?


Use PHP for all the webpages, and use PHP sessions to limit the
time. That alone won't stop a user from getting multiple 1/2 hour
'blocks of time', but it might be part of a solution.

--
Dave Patton
Canadian Coordinator, Degree Confluence Project
http://www.confluence.org/
My website: http://members.shaw.ca/davepatton/
Jul 20 '05 #7
On Fri, 30 Jan 2004 18:02:03 GMT, Dave Patton <no**@none.co m> wrote:

Use PHP for all the webpages, and use PHP sessions to limit the
time. That alone won't stop a user from getting multiple 1/2 hour
'blocks of time', but it might be part of a solution.


Dave

this is in place of .htpasswd etc? I thought that ,htpasswd might be
more secure than php for allocating access?

Cheers

Geoff

Jul 20 '05 #8
On Fri, 30 Jan 2004 18:02:03 +0000, Dave Patton wrote:
Use server-side tools. For example, use PHP and sessions.


Dave

thanks for the reply - could you point me at any info on how to do this?


Use PHP for all the webpages, and use PHP sessions to limit the time. That
alone won't stop a user from getting multiple 1/2 hour 'blocks of time',
but it might be part of a solution.

Sure it could..

Store a marker for the user of that day (database / flatfile). When they
next login:
if ((time() - $last_login_tim e) < 86400) {
die('Go away! time not up yet');
}

$_SESSION['login_time'] = time();
[...]
HTH =)

Regards,

Ian

--
Ian.H
digiServ Network
London, UK
http://digiserv.net/

Jul 20 '05 #9
"Ian.H" <ia*@WINDOZEdig iserv.net> wrote in
news:pa******** *************** *****@hybris.di giserv.net:
On Fri, 30 Jan 2004 18:02:03 +0000, Dave Patton wrote:
Use server-side tools. For example, use PHP and sessions.

Dave

thanks for the reply - could you point me at any info on how to do
this?


Use PHP for all the webpages, and use PHP sessions to limit the time.
That alone won't stop a user from getting multiple 1/2 hour 'blocks
of time', but it might be part of a solution.

Sure it could..

Store a marker for the user of that day (database / flatfile). When
they next login:

if ((time() - $last_login_tim e) < 86400) {
die('Go away! time not up yet');
}

$_SESSION['login_time'] = time();
[...]


The reason I said "might be part of a solution" is that it
very much depends on your definition of "the user".
For example, is it based on a userid/password identification
scheme, or IP address(a flawed approach), etc.
Only with clear and complete specs for the business requirement
can an appropriate solution be designed(if at all).

--
Dave Patton
Canadian Coordinator, Degree Confluence Project
http://www.confluence.org/
My website: http://members.shaw.ca/davepatton/
Jul 20 '05 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
4980
by: Tom Jones | last post by:
I need to access databases on both win2k and Linux systems but I have to set up the DSNs under program control ... no uses using GUIs ... Has anyone done this? if so can we discuss it either in here or offline? thanks Tom
3
474
by: Brad Burke | last post by:
From a windows .Net app, I need to 1) check if MSAccess is already open to a certain Access application. If so, then open a form and find a certain record. 2) If not open, then open MSAccess and open a secured Access application and then open a form and find a record. (The Access App is secured not with a database password but with full user name and password security.) I can open the form and find the record OK. I am having problems...
4
2415
by: Chris via AccessMonster.com | last post by:
I have the challenge of needing to automate table creation. It doesn't end there the tables have to be created from one table that looks something like this... Email Source at@at.com EB no@no.com EN in@in.com EB at@at.com EN I have to create those tables based on grouped records in the Source field. So in this case i would...
16
48886
by: cyranoVR | last post by:
This is the approach I used to automate printing of Microsoft Access reports to PDF format i.e. unattended and without annoying "Save As..." dialogs, and - more importantly - without having to use a commercial program such as Adobe Acrobat and its associated API. The technique uses Ghostscript and Redirection Port Monitor - two free programs for creating PDF documents provided free by Russell Lang. The actual automation requires VBA...
1
4959
by: Mark | last post by:
Hi all, I have a Access 2002 FE/BE scenario where the BE is stored on a network drive. Due to the amount of importing/deleting, the database bloats quite a lot. UP until now, I have been booting the users out of the database and manually compacting it. What I am trying to do is automate the process so I don't have to worry about it. My VB skills are few and far between so this is proving somewhat of a challenge. Because I am trying to...
3
1806
by: John Marble | last post by:
I have around 400 excel files filled with data that I need to import in ACCESS. The tricky part is that they must be imported one at time, and properly corrected before importing the next one. I already automated most of the formatting task of the raw data, and I am wondering if it is possible to automate the original importation too (like when I click on FILE>Import). Anyone have an idea?
25
1898
by: MLH | last post by:
In an earlier post entitled... "A97 closes down each time I open a particular report" it has been suggested that I rebuild problematic table - one in which some corruption has occurred. I don't know which table is the problem, so I would like to rebuild them all in a new database. I'm sure most of you would cringe at the thought of having to do this manually for most of your applications.
0
1377
by: Jill Elaine | last post by:
I want to automate the import of 5 encrypted .db (Paradox) tables into a MS Access 2002 database every time the Access database is opened. I think I could use the TransferDatabase method to import the .db tables, but, since these tables are encrypted, I need to provide a password at the start of the import. Unfortunately, the .db tables are created as part of an application: I cannot unencrypt the tables nor set the password to...
15
11140
by: Karl | last post by:
Hi all, I regularly use FTP to place Self Extracting Zip files on the web for remote users to update their datafiles. Works very nicely. I have automated the creation of the initial zip file ( update.zip ), and can automate the FTP'ing of the SE zip file to the update site. I have, as yet, been unable to find a way of automating the creation of a SE zip file from the initial update.zip. I have performed a rather
0
9568
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9404
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10168
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10008
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9959
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
6651
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5279
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5423
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
3
2806
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.