View Full Version : Javascript and session variable

09-12-2011, 06:51 PM

I am making a small software which will require activation.

My problem is when I activate my software after checking the key through my website I want to enter some information in registry of the user.

Now my problem is when I check the value through my website how can I return after verification to the local computer.

is it possible if I create a session variable or some other type of variable (not sure what type) and then read that variable on user computer. If that matches I will enter the code in registry.

Old Pedant
09-12-2011, 08:47 PM
Not with JavaScript.

The best you could do with JavaScript would be to set a cookie (or, with modern browsers, a very limited text file).

That's not a terrible solution. If you put an expiration time of, say, a year on the cookie, then the user has to renew their activation after a year.

It's not as good as a registry entry, but if your "small software" is written in JavaScript it's probably adequate.

09-15-2011, 12:21 PM
Well cookie is also not working.

When I check a condition on my web server through my website, I am not able to return to local computer on which my software is being installed.

How can I return to local computer after checking value online.

I tried with Cookie, Session Variable, XML but nothing sending back true or false to the local computer.

I am using javascript on the local computer.

Please help.

How normally software works when they check data online and come back, if serial matches.

Old Pedant
09-15-2011, 05:49 PM
I have no idea what you meant by all that.

You will have to show some code, I think, if you want help.