Exit Button

  • Thread starter Thread starter Andre
  • Start date Start date
A

Andre

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.
 
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.
 
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
 
The question is about back navigation of browser, isn't it?

--

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

Roger Helliwell said:
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
 
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.
 
Back
Top