Exit Button

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.
 
Y

Yunus Emre ALPÖZEN [MCAD.NET]

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.
 
R

Roger Helliwell

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
 
Y

Yunus Emre ALPÖZEN [MCAD.NET]

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
 
G

Guest

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,432
Messages
2,571,680
Members
48,796
Latest member
Greg L.

Latest Threads

Top