473,416 Members | 1,535 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,416 software developers and data experts.

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

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.
Nov 19 '05 #1
3 1999
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" <ke****@discussions.microsoft.com> wrote in message
news:30**********************************@microsof t.com...
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.

Nov 19 '05 #2
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" <ke****@discussions.microsoft.com> wrote in message
news:30**********************************@microsof t.com...
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.


Nov 19 '05 #3
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" <ke****@discussions.microsoft.com> wrote in message
news:30**********************************@microsof t.com...
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.


Nov 19 '05 #4

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

Similar topics

6
by: lukeo | last post by:
I'm shelling out to an .asp (or htm) page from an application. I want to show this in a window without the address bar, etc... Is there a way I can redirect this page using javascript to a page...
1
by: net | last post by:
I know how to make a page open itself at a certain size and location - I use: <html> <head><script language="Javascript"> window.resizeTo(370,220); window.moveTo(10,10); </script> <meta...
10
by: Marshall Dudley | last post by:
When I do the following line in Netscape, the popup loads as it should, but the parent window usually, but not always, reloads as well. <a href="#"...
4
by: Ian Sedwell | last post by:
Hi guys The following code works just fine in Netscape on MacOS and Windows. But in Explorer on MacOS and Windows it throws a type mismatch error at the point marked with the comment ³// bug out...
8
by: Dominic Tocci | last post by:
I'm searching for a way to use window.open on my web page to open a window in firefox that allows the sidebars to work (bookmarks, history, etc). When I use the following: var...
6
by: Jack | last post by:
I have a main webpage that has a list of records, each with a link to a window.open function call. As an example, a page that opens is editrecord.aspx?RecordID=34, and another is...
11
by: Dave | last post by:
For some reason, the below lines only work on select machines. All machines are running IE6. IE SP's and OS's vary. When it doesn't work, default.aspx (the page that this code is in) opens and...
13
by: Bob Jones | last post by:
Here is my situation: I have an aspx file stored in a resource file. All of the C# code is written inline via <script runat="server"tags. Let's call this page B. I also have page A that contains...
6
by: bushi | last post by:
hi everyone! i have diplayed my hyperlinks in a iframe.when i redirect to next page.the next page also open in the same frame,but i want to open a new browser window,when i click on the...
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
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:
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...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

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.