473,414 Members | 1,843 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,414 software developers and data experts.

Limit website viewing

OuTCasT
374 256MB
Could someone please tell if its possible to use a server/client side cookie to limit the amount of times that a website is displayed ?
Like for instance i would like to demo a website but limit the amount of times that the client will be able to view the site without me taking off the files.
Mar 18 '09 #1
1 1250
PRR
750 Expert 512MB
You can update a counter in database or xml file on page_load .. if the counter is greater than certain limit you can log out the user or redirect him to a page specifying the reasons....
Expand|Select|Wrap|Line Numbers
  1. if (!IsPostBack)
  2.         {
  3.             // update counter
  4.         }
  5.  
Mar 18 '09 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

20
by: MozillaCensorsMe | last post by:
Remember that tutorial I'm was threathening a few months ago? Well, everyone, just take a peek at completely wow-new http://www.andkon.com/ Too avoid the *unneccessary* flames read these two:...
0
by: Hexman | last post by:
Hello All, Its a bit more complicated than the subject line implies. A website that I use for information allows me to click on a link and their .PDF displays in IE's browser window.. Since...
0
by: Hexman | last post by:
Hello All, Its a bit more complicated than the subject line implies. A website that I use for information allows me to click on a link and their .PDF displays in IE's browser window.. Since...
1
by: =?Utf-8?B?Qw==?= | last post by:
Hi, I have been approached by a company to do some work on their website. I am a Web Developer but don't come from a Multimedia background. The company is involved in Property Sales. They...
1
by: David Greene | last post by:
I am allowing my visitors to view my c#, xsl, xml code at my website: http://www.dlgreene.com You can view the code by clicking the Code link at the top or bottom left of every page. Every code...
0
by: Nemisis | last post by:
Hi all and happy new year, hope everyone had a good time off work!! I have a problem, we have created a .net web application aimed at pda's using Windows Mobile 5 and above and it works great. ...
30
by: Jeff Bigham | last post by:
So, it appears that Javascript has a recursion limit of about 1000 levels on FF, maybe less/more on other browsers. Should such deep recursion then generally be avoided in Javascript?...
4
by: rahullko05 | last post by:
Hi, I am writing a code to display the number of user currently viewing my website at any point of time. for example: for bytes i can see network: 216355 as number of users currently viewing...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
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,...
0
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...
0
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
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...

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.