Need javascript for encrypting a Page

Superb
67% (2 votes)
Can say
0% (0 votes)
No
0% (0 votes)
Not at all
33% (1 vote)
Total votes: 3

He has: 113 posts

Joined: Jul 2005

The only reliable way you can accomplish this is, as I said before - with server side scripting such as ASP or PHP.
You will not be able to do this with javascript, at least not very easily.

kirpal_06391's picture

He has: 12 posts

Joined: Jun 2006

"Is there a reason the clients can't go back and change their answers?"

Yes, there is areason the form transmits quiz data and takes timed out persons to other page "sorry.html". So i don't want people to play the quiz again and again changing their answers.

Check out at http://bharatindia.5000megs.com/kbc.html

kirpal_06391's picture

He has: 12 posts

Joined: Jun 2006

kirpal_06391 wrote: "Is there a reason the clients can't go back and change their answers?"

Yes, there is areason the form transmits quiz data and takes timed out persons to other page "sorry.html". So i don't want people to play the quiz again and again changing their answers.

Check out at http://bharatindia.5000megs.com/kbc.html

No body has answer for this.

He has: 113 posts

Joined: Jul 2005

Unfortunatly its going to be quite hard for someone to explain the process to you because you need to have a basic knowledge of server scripting, and you need certain requirements from your web space.

For what you are trying to do, you are not trying to expire sessions but pages. Additionally what you state you require the functionality for, it seems a bit over kill. Is there a reason the clients can't go back and change their answers?

kirpal_06391's picture

He has: 12 posts

Joined: Jun 2006

Neutron2k wrote: Is there a reason the clients can't go back and change their answers?

Yes, because it is a quiz and time based, I don't anyone could play it second time.

He has: 113 posts

Joined: Jul 2005

sessions are serverside unfortunatly and cannot be controlled with javascript. You need php or asp support on your web server and knowledge of that i'm afraid.

kirpal_06391's picture

He has: 12 posts

Joined: Jun 2006

Help me in every way you can I don't know any thing about this.

He has: 1,380 posts

Joined: Feb 2002

Like Neutron said, that's not encryption. Are you looking to set page expiration warnings? Cookies, and sessions, will allow you to achieve what (I believe) you want to do.

kirpal_06391's picture

He has: 12 posts

Joined: Jun 2006

I am new to javascript please tell me how to make sessions expirable. Thanks in advance and keep polling.

He has: 113 posts

Joined: Jul 2005

thats not encryption. Thats session expiry which you cannot generate with client side code, because when a user clicks back, the page is not refreshed, its just a cached copy of where they just came from.

So unfortunatly you may be out of luck on this one.

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.