473,387 Members | 1,798 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Exit Button

Hi,

I have an application that display users invoice.

On every page i have an "Exit button". Is there a way, if the user click
on "Exit" (to logoff from the system), and after on Back in is browser to
prevent the page to display the informations. So if the user click Exit, no
one can come after him and check is informations.

Thank you.
Nov 19 '05 #1
4 2546
You can use javascript replace method which overrides browser history. But
the best solution is show private data in a popup window. And at sing out
close window using javascript.

--

Thanks,
Yunus Emre ALPÖZEN
BSc, MCAD.NET

"Andre" <we*******@cablevision.qc.ca> wrote in message
news:eI**************@tk2msftngp13.phx.gbl...
Hi,

I have an application that display users invoice.

On every page i have an "Exit button". Is there a way, if the user
click on "Exit" (to logoff from the system), and after on Back in is
browser to prevent the page to display the informations. So if the user
click Exit, no one can come after him and check is informations.

Thank you.

Nov 19 '05 #2
On Tue, 3 May 2005 11:50:32 -0400 in
microsoft.public.dotnet.framework.aspnet, "Andre"
<we*******@cablevision.qc.ca> wrote:
Hi,

I have an application that display users invoice.

On every page i have an "Exit button". Is there a way, if the user click
on "Exit" (to logoff from the system), and after on Back in is browser to
prevent the page to display the informations. So if the user click Exit, no
one can come after him and check is informations.


If you're using .NET 2.0, you could use the <asp:LoginView> control to
wrap the controls on your aspx page that display sensitive
information.

Another way is to store a value in Session that indicates whether the
user is logged in or not. Then in your Page_Load (or a data binding
method) add some code such as:

bool b = (bool) Session["IsLoggedIn"];
if (b == true)
{
// User is logged in, populate the form controls
}
else
{
// User is not logged in, display an error message
}

When the user clicks 'Exit', set the value in Session to false.

Hope that gets you started,
Roger
Nov 19 '05 #3
The question is about back navigation of browser, isn't it?

--

Thanks,
Yunus Emre ALPÖZEN
BSc, MCAD.NET

"Roger Helliwell" <rh********@telus.net> wrote in message
news:g7********************************@4ax.com...
On Tue, 3 May 2005 11:50:32 -0400 in
microsoft.public.dotnet.framework.aspnet, "Andre"
<we*******@cablevision.qc.ca> wrote:
Hi,

I have an application that display users invoice.

On every page i have an "Exit button". Is there a way, if the user
click
on "Exit" (to logoff from the system), and after on Back in is browser to
prevent the page to display the informations. So if the user click Exit,
no
one can come after him and check is informations.


If you're using .NET 2.0, you could use the <asp:LoginView> control to
wrap the controls on your aspx page that display sensitive
information.

Another way is to store a value in Session that indicates whether the
user is logged in or not. Then in your Page_Load (or a data binding
method) add some code such as:

bool b = (bool) Session["IsLoggedIn"];
if (b == true)
{
// User is logged in, populate the form controls
}
else
{
// User is not logged in, display an error message
}

When the user clicks 'Exit', set the value in Session to false.

Hope that gets you started,
Roger

Nov 19 '05 #4
I do this by enableing inproc sessionstate. and tieing this to the
order/invoice displayed. On exit click i kill the session and force a go back
to an initial screen. This can be a login or a home screen. the session is
recreated, but is new and is not associated with the previous order.

"Andre" wrote:
Hi,

I have an application that display users invoice.

On every page i have an "Exit button". Is there a way, if the user click
on "Exit" (to logoff from the system), and after on Back in is browser to
prevent the page to display the informations. So if the user click Exit, no
one can come after him and check is informations.

Thank you.

Nov 19 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: s-galit | last post by:
im using "Error Provider" in my form , the problem is that when im trying to exit the program by the exit button on the title bar im getting disturbed by the error provider so i cant exit the...
7
by: deko | last post by:
I have a function with a number of long loops. While the function is running, I want to be able to click a Stop button and exit the function as quickly as possible. The abbreviated code looks...
8
by: drose0927 | last post by:
Please help! I can't get my program to exit if the user hits the Escape button: When I tried exit(EXIT_SUCCESS), it wouldn't compile and gave me this error: Parse Error, expecting `'}''...
6
by: orekin | last post by:
Hi There I have been trying to come to grips with Application.Run(), Application.Exit() and the Message Pump and I would really appreciate some feedback on the following questions .. There are...
24
by: Agnes | last post by:
I need to disable the exit button in the form . However, the min. and max. button need to keep it How ? Thanks a lot From Agnes
1
by: Peter Oliphant | last post by:
I have a C++ Console application being written using VS C++.NET 2005 Express. It never crashes and seems to be working just fine. However, when I close the application via the Console 'X' exit...
2
by: jsimons | last post by:
If the user accidentally clicks the X close button I'm using the following code in the form unload event to stop them from accidentally quitting Access. Private Sub Form_Unload(Cancel As...
2
by: Matuag | last post by:
Hi All, I want to create following command buttons on a Form which users can edit. Save ( Save Changes made) Cancel ( Undo data changes) Exit ( Close form) I am using Macros for each of...
2
by: Learning.Net | last post by:
hi , I have a application which reads files, directory,and its version and version information is written to text file.Its working fine if files in directory are less but problem arises when no...
2
by: dstork | last post by:
Anyone know how to rename the "Exit Access" command at the bottom of the Office menu. I'd like to rename it to "Exit" as I had done in previous versions of Access. I know I can disable it with ...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.