Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > How to open a secure aspx page in a window without 'chrome'

Reply
Thread Tools

How to open a secure aspx page in a window without 'chrome'

 
 
=?Utf-8?B?a2VybWl0?=
Guest
Posts: n/a
 
      12-27-2004
Hi,
I am hoping this is a foolish or simple question.
I am creating a multiuser app. consisit of a login page and a dataentry
page. If the user leaves the data entry page (other than exiting the
browser). I want them to 'have' to go back through the login screen and
re-login.

My problem is the browser's (IE 6) Back and Forward buttons.
If the user clicks the Back button from the data entry screen they go to the
login in screen and if they click the Forward button from there, they arrive
at the data entry screen without loggin in.
I have tried messing with cache and cannot seem to prevent this.

For now I have them enter the app via a html page (splach screen) which then
does an open.window to launch the app in a chrome-less window. Works great,
but I have the initial splash screen html page still open.

All suggestions are appreciated! I know I must be missing something in the
security concept.
 
Reply With Quote
 
 
 
 
Daniel Fisher\(lennybacon\)
Guest
Posts: n/a
 
      12-28-2004
have you ever hit [alt] + [arrow left] ?

what you can do is call

opener.close();

maybe...

--
Daniel Fisher(lennybacon)
MCP ASP.NET C#
Blog: http://www.lennybacon.com/


"kermit" <> wrote in message
news:30EC95B8-949F-4F6E-875B-...
> Hi,
> I am hoping this is a foolish or simple question.
> I am creating a multiuser app. consisit of a login page and a dataentry
> page. If the user leaves the data entry page (other than exiting the
> browser). I want them to 'have' to go back through the login screen and
> re-login.
>
> My problem is the browser's (IE 6) Back and Forward buttons.
> If the user clicks the Back button from the data entry screen they go to
> the
> login in screen and if they click the Forward button from there, they
> arrive
> at the data entry screen without loggin in.
> I have tried messing with cache and cannot seem to prevent this.
>
> For now I have them enter the app via a html page (splach screen) which
> then
> does an open.window to launch the app in a chrome-less window. Works
> great,
> but I have the initial splash screen html page still open.
>
> All suggestions are appreciated! I know I must be missing something in
> the
> security concept.



 
Reply With Quote
 
 
 
 
=?Utf-8?B?a2VybWl0?=
Guest
Posts: n/a
 
      12-28-2004
Thank you for your response.

I put opener.close() in today.
It does what I want, if I could just get rid of the 'are you sure' message.

Learn something new everyday. I had never used Alt + arrow R/L before. I
am working on a limited user intra net app. and I suspect most (none) know of
the keyboard shortcut either.

"Daniel Fisher(lennybacon)" wrote:

> have you ever hit [alt] + [arrow left] ?
>
> what you can do is call
>
> opener.close();
>
> maybe...
>
> --
> Daniel Fisher(lennybacon)
> MCP ASP.NET C#
> Blog: http://www.lennybacon.com/
>
>
> "kermit" <> wrote in message
> news:30EC95B8-949F-4F6E-875B-...
> > Hi,
> > I am hoping this is a foolish or simple question.
> > I am creating a multiuser app. consisit of a login page and a dataentry
> > page. If the user leaves the data entry page (other than exiting the
> > browser). I want them to 'have' to go back through the login screen and
> > re-login.
> >
> > My problem is the browser's (IE 6) Back and Forward buttons.
> > If the user clicks the Back button from the data entry screen they go to
> > the
> > login in screen and if they click the Forward button from there, they
> > arrive
> > at the data entry screen without loggin in.
> > I have tried messing with cache and cannot seem to prevent this.
> >
> > For now I have them enter the app via a html page (splach screen) which
> > then
> > does an open.window to launch the app in a chrome-less window. Works
> > great,
> > but I have the initial splash screen html page still open.
> >
> > All suggestions are appreciated! I know I must be missing something in
> > the
> > security concept.

>
>
>

 
Reply With Quote
 
=?Utf-8?B?a2VybWl0?=
Guest
Posts: n/a
 
      01-02-2005
For those who may be interested, my real problem was the the back button
bypassing authentication.

The finall resolution was to disable Caching in code on the Form_Load event
(it must run on every form load event); and to compare time stamps (one in
view state and one in Session State) in the form load event to verify they
are the same.
Works great (Ref: Murach's ASP.Net, Chapter 19, "Back-Button Control")

Disable Cache on Form_Load event
Response.Cache.SetCacheability(HttpCacheability.No Cache)
Response.Cache.SetExpires(Now().AddSeconds(-1)
Response.Cache.SetNoStore()
Response.AddHeader("Pragma", "no-cache")

If IsExpired() then
Response.Redirect("expired.aspx")
Else
SaveTimeStamps()
End If


Private Function IsExpired() as Boolean
If Session("Doc_TimeStamp") Is Nothing then
return False
elseif ViewState("TimeStamp") Is Nothing then
return False
elseif ViewState("TimeStamp").ToString = Session("Doc_TimeStamp").ToString
then
return False
else
return True
End If
End Function

Private Sub SaveTimeStamps()
Dim dTime as DateTime = Now()
ViewState.Add("TimeStamp"), dTime)
Session.Add("Doc_TimeStamp"), dTime)
End Sub

Hope this helps someone else.







"kermit" wrote:

> Thank you for your response.
>
> I put opener.close() in today.
> It does what I want, if I could just get rid of the 'are you sure' message.
>
> Learn something new everyday. I had never used Alt + arrow R/L before. I
> am working on a limited user intra net app. and I suspect most (none) know of
> the keyboard shortcut either.
>
> "Daniel Fisher(lennybacon)" wrote:
>
> > have you ever hit [alt] + [arrow left] ?
> >
> > what you can do is call
> >
> > opener.close();
> >
> > maybe...
> >
> > --
> > Daniel Fisher(lennybacon)
> > MCP ASP.NET C#
> > Blog: http://www.lennybacon.com/
> >
> >
> > "kermit" <> wrote in message
> > news:30EC95B8-949F-4F6E-875B-...
> > > Hi,
> > > I am hoping this is a foolish or simple question.
> > > I am creating a multiuser app. consisit of a login page and a dataentry
> > > page. If the user leaves the data entry page (other than exiting the
> > > browser). I want them to 'have' to go back through the login screen and
> > > re-login.
> > >
> > > My problem is the browser's (IE 6) Back and Forward buttons.
> > > If the user clicks the Back button from the data entry screen they go to
> > > the
> > > login in screen and if they click the Forward button from there, they
> > > arrive
> > > at the data entry screen without loggin in.
> > > I have tried messing with cache and cannot seem to prevent this.
> > >
> > > For now I have them enter the app via a html page (splach screen) which
> > > then
> > > does an open.window to launch the app in a chrome-less window. Works
> > > great,
> > > but I have the initial splash screen html page still open.
> > >
> > > All suggestions are appreciated! I know I must be missing something in
> > > the
> > > security concept.

> >
> >
> >

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Secure your digital information assets with Secure Auditor. SecureWindows with Secure Auditor alannis.albert@googlemail.com Cisco 0 04-14-2008 06:53 AM
Secure your digital information assets with Secure Auditor SecureWindows with Secure Auditor alannis.albert@googlemail.com Cisco 0 04-14-2008 06:52 AM
Secure your digital information assets with Secure Auditor and alsoSecure Windows with Secure Auditor alannis.albert@googlemail.com Wireless Networking 0 04-14-2008 06:37 AM
Back button doesn't work when it is a secure page returning to a non secure page Miss Mary General Computer Support 1 09-21-2007 09:32 AM
Cannot view any .aspx page without .aspx.cs present Jerry Tovar ASP .Net 1 10-23-2003 05:59 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57