For Programmers: Free Programming Magazines  


Home > Archive > ASP > January 2007 > LOGOUT From Application using ASP









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author LOGOUT From Application using ASP
SSG

2007-01-16, 3:56 am

Dear All,

How to logout from the application using ASP , session object..

Can u explain the use of Global.asa file & Once i logded out , if i
clik Back button in browser, it shuldnt allow to view the authorised
page...

Anthony Jones

2007-01-16, 7:56 am


"SSG" <ssg14j@gmail.com> wrote in message
news:1168921408.980676.129660@a75g2000cwd.googlegroups.com...
> Dear All,
>
> How to logout from the application using ASP , session object..
>
> Can u explain the use of Global.asa file & Once i logded out , if i
> clik Back button in browser, it shuldnt allow to view the authorised
> page...
>


You can use Session.Abandon to assist in logging out a session.

However, there is little you can do when the user clicks the back button.
Quite often the browser still has a rendered copy of the page and
re-displays it without asking the server for permission.



Dave Anderson

2007-01-16, 6:56 pm

SSG wrote:
> How to logout from the application using ASP , session object..
>
> Can u explain the use of Global.asa file & Once i logded out ,
> if i clik Back button in browser, it shuldnt allow to view the
> authorised page...


There is no requirement that a browser refresh anything in its history.

One approach to the problem is to redirect to the protected page AT LOGOFF.
This should replace the history entry for that page, and trigger the LOGON
page. This seems to trip up the history in IE and Opera, but has no effect
on Gecko browsers.

Of course, the history belongs to the user, not to you. If you showed it to
him, then he has the right to see it again.




--
Dave Anderson

Unsolicited commercial email will be read at a cost of $500 per message. Use
of this email address implies consent to these terms.


Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com