473,324 Members | 2,370 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,324 software developers and data experts.

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 1906
Tim
On Thu, 29 Jan 2004 09:24:06 GMT,
Geoff Cox <ge*******@dontspamblueyonder.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*******@dontspamblueyonder.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 Patton
Canadian Coordinator, Degree Confluence Project
http://www.confluence.org/
My website: http://members.shaw.ca/davepatton/
Jul 20 '05 #3

"Tim" <Ti*@mail.localhost> wrote in message
news:uh********************************@4ax.com...
On Thu, 29 Jan 2004 09:24:06 GMT,
Geoff Cox <ge*******@dontspamblueyonder.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.com> wrote:
Geoff Cox <ge*******@dontspamblueyonder.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.*********@comcast.net> wrote:

"Tim" <Ti*@mail.localhost> wrote in message
news:uh********************************@4ax.com.. .
On Thu, 29 Jan 2004 09:24:06 GMT,
Geoff Cox <ge*******@dontspamblueyonder.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*******@dontspamblueyonder.co.uk> wrote in
news:hn********************************@4ax.com:
On Thu, 29 Jan 2004 12:43:38 GMT, Dave Patton <no**@none.com> wrote:
Geoff Cox <ge*******@dontspamblueyonder.co.uk> wrote in
news:h0********************************@4ax.co m:
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.com> 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_time) < 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*@WINDOZEdigiserv.net> wrote in
news:pa****************************@hybris.digiser v.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_time) < 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
On Fri, 30 Jan 2004 23:55:52 GMT, Dave Patton <no**@none.com> wrote:

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

it is user id/password protection for the folder using .htaccess and
..htpasswd

Cheers

Geoff
Jul 20 '05 #11

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

Similar topics

1
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...
3
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...
4
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 ...
16
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...
1
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...
3
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...
25
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...
0
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...
15
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 (...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

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.