Solved

Security in CGI program

Posted on 2000-03-04
12
162 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?
0
Comment
Question by:liulian
12 Comments
 
LVL 1

Expert Comment

by:fulvio_brasil
ID: 2584340
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>
0
 

Author Comment

by:liulian
ID: 2584520
But my program works on a touching screen. User can't close the IE!
0
 

Author Comment

by:liulian
ID: 2584547
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?
0
 
LVL 17

Expert Comment

by:inthe
ID: 2585169
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
0
 

Expert Comment

by:mirghani
ID: 2590889
Listening:-)
0
 

Author Comment

by:liulian
ID: 2594126
hi inthe:
Thank you, but it doesn't work.
0
How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

 

Author Comment

by:liulian
ID: 2594128
hi inthe:
Thank you, but it doesn't work.
en...
Can you give me more comments?
0
 
LVL 17

Expert Comment

by:inthe
ID: 2594919
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.
0
 

Author Comment

by:liulian
ID: 2598640
Hi, inthe:
Can you can me a web page in the internet has this function?
Thank you.
0
 
LVL 17

Expert Comment

by:inthe
ID: 2598826
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.
0
 

Author Comment

by:liulian
ID: 2599162
Ok...I'll try it later..
Thank you
0
 
LVL 17

Accepted Solution

by:
inthe earned 50 total points
ID: 2775436
this works ive tested:
<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.

0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

760 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now