how to check expiry date

N

Naga Kiran

Hi
I want to set expiration date for my web based application. for eg it has to
be worked for 15 days from the date when it was installed.
More over i dont want to use system date to check the
installed date with current date as because any one can easily change the
system date so tha application may work as it is after crossing the 15 days
also.

Can anybody tell me how to do this one.its very urgent for me.

Thanx in advance
Kiran
 
G

Guest

YOu can store that information on your side and check it, but I have to ask
why? Most likely, you are using the user cookie to store expiration for your
server side application? If so, that is a mistake.

Rule #1: Never trust user input.

Following this, the expiration is a convenience for the user, not something
you should trust. Whether the user still has access should be stored on your
side and checked when a user attempts to sign in.

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

***************************
Think Outside the Box!
***************************
 
L

Lucas Tam

I want to set expiration date for my web based application. for eg it
has to be worked for 15 days from the date when it was installed.
More over i dont want to use system date to check
the
installed date with current date as because any one can easily change
the system date so tha application may work as it is after crossing
the 15 days also.

You could talk to a remote computer (i.e. an activation server) which has
an accurate date time.

Or you can use an unlocking tool such as ActiveLock:

http://activelock.sourceforge.net

ActiveLock is a COM object, but there should be a .NET equivalent.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,982
Messages
2,570,186
Members
46,742
Latest member
AshliMayer

Latest Threads

Top