Print Page | Close Window

LiL Help

Printed From: Web Wiz Forums
Category: General Discussion
Forum Name: Classic ASP Discussion
Forum Description: Discussion on Active Server Pages (Classic ASP).
URL: https://forums.webwiz.net/forum_posts.asp?TID=13549
Printed Date: 30 March 2026 at 3:03pm
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: LiL Help
Posted By: felix.akinyemi
Subject: LiL Help
Date Posted: 28 January 2005 at 1:38pm

Im trying to make is so when someone visits a page, they wont be able to go back to the page for the next 15 minutes.




Replies:
Posted By: dj air
Date Posted: 28 January 2005 at 1:45pm
on my script i have... i have set a cookie with a time

then all you need to do is check the NOW() against the cookie value +15 minutes if less than NOW() its longer than 15 minutes

there isn't a 100% sure way to stop them really every one that is.

you can set a session also ... but they can just turn off the browser/cookies .

or you can set an arrys to capture the time and IP Address. using the IP as as the Identifier.


Posted By: felix.akinyemi
Date Posted: 28 January 2005 at 1:57pm

What file is it in! do i have it!! and the array is prob the best way but IPs change as well!! i tried it using session but like you said they can just turn off the browser/cookies thats why im here!!



Posted By: dj air
Date Posted: 28 January 2005 at 2:41pm
yea the active users.asp page.

its set in a cookie


Posted By: felix.akinyemi
Date Posted: 29 January 2005 at 5:05pm
Another thing!! how can i do it so that it tells the user how long they have been away from the page??


Posted By: dj air
Date Posted: 29 January 2005 at 5:51pm
Now() - stored value = time away

edit-->

sorry just wroyr the above.. ill exoplain a bit

if you take the stored time from now it leaves the difference then you can CDate() the out put and extract it.


Posted By: felix.akinyemi
Date Posted: 29 January 2005 at 5:58pm
OK, but what does CDate() do!! what is it!! and how would i use it!!


Posted By: dj air
Date Posted: 29 January 2005 at 6:27pm
cdate makes the string into a date/time value

if you use this CDate("12/02/05")

it would turn that value into the mm/dd/yyyy

a good site is www.devguru.com

shows you all the functions and shows examples



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net