We help IT Professionals succeed at work.

Security in CGI program

liulian
liulian asked
on
187 Views
Last Modified: 2010-04-04
I'd like use a cgi to let my user get
their private informations from web, but
after the first user login and viewing
his things, next user can use "back"
button of IE to go back and get the
private data of the first person.

How can I add protection of my web?
Comment
Watch Question

A good way is create a link in your HTML which closes the window. The user can click it after use your page.

You can use this:
<a href="" onclick="parent.close()">Exit</a>

Author

Commented:
But my program works on a touching screen. User can't close the IE!

Author

Commented:
Some web has "Logout" , if I  click on it then use the "back" button, the web site redirect to login page. How do they do like this?

Commented:
Hi
you should use these instead somewhere in you <head> tag ,these stop the browsers from loading pages from the cache:

<meta HTTP-EQUIV="pragma" Content="nocache">
<meta HTTP-EQUIV="cache-control" Content="no-cache">
<meta HTTP-EQUIV="expires" content="1 Jan 99">
 
 
Regards Barry

Commented:
Listening:-)

Author

Commented:
hi inthe:
Thank you, but it doesn't work.

Author

Commented:
hi inthe:
Thank you, but it doesn't work.
en...
Can you give me more comments?

Commented:
mmm.. i have to test that sometime i was quite sure it should work.i have definetly used it before in homepage stuff for clearing a form or something.

Author

Commented:
Hi, inthe:
Can you can me a web page in the internet has this function?
Thank you.

Commented:
Hi
 it dont work but i find a way that does try this:

<A HREF="javascript:location.replace('nextpage.html')">Advance</A>

The location object's replace() method overwrites the current history entry with the specified URL. It removes the current history entry before the next URL is loaded. Removing the item from the history list also prevents users from seeing the page again by clicking on the Back button later.
This technique is very useful for online games and multi-page forms, where you want prevent the user from returning to the previous page. Furthermore, the location.replace() method is supported by all browsers except Navigator 2.0x.

Author

Commented:
Ok...I'll try it later..
Thank you
Commented:
This one is on us!
(Get your first solution completely free - no credit card required)
UNLOCK SOLUTION

Gain unlimited access to on-demand training courses with an Experts Exchange subscription.

Get Access
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Empower Your Career
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE

Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Unlock the solution to this question.
Join our community and discover your potential

Experts Exchange is the only place where you can interact directly with leading experts in the technology field. Become a member today and access the collective knowledge of thousands of technology experts.

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.