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

popup and timeout problem

Hi,

I have a little problem and I can't solve it. I have a webpage and in
the aspx i have this code:
if (exists)
Response.Write("<td align='center' bgcolor=#0033ff
onclick=\"javascript:window.open('wfpopup.aspx?ID= "+workflow[i]+"&DAY="+
j.ToString()+"','','width=250,height=180,left=20,t op=120,resizable=no,st
atus=no,toolbar=no')\"&gt;><img src=\"images/blue_square.gif\" border=0
height=16 width=16></td>");
else
Response.Write("<td align='center'
bgcolor=#ffffff>&nbsp;&nbsp;&nbsp;&nbsp;</td>");
}

This will create a table with blue clickable sqares for selected days.
After clicking on the sqare, it will open a popup with some data I need.
All is fine to here. After the Session is timed out, after I click on
the blue sqare the popup will open but inside is the login page of the
application. The popup code does not have any code regarding security so
it should open normally.
When I compile step by step, after the timeout, the run will not pass
through the popup code. Please help.

Thanks in advance,
Dan

*** Sent via Developersdex http://www.developersdex.com ***
Nov 17 '05 #1
5 2110
Hi,

Are you using Form auth?

If so when you make a request without being auth first ( by the existence of
an ID in the request ) your request ( wfpopup.aspx ) is redirected to the
auth page
cheers,

--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation


"Dan Pavel" <my**************@yahoo.com> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
Hi,

I have a little problem and I can't solve it. I have a webpage and in
the aspx i have this code:
if (exists)
Response.Write("<td align='center' bgcolor=#0033ff
onclick=\"javascript:window.open('wfpopup.aspx?ID= "+workflow[i]+"&DAY="+
j.ToString()+"','','width=250,height=180,left=20,t op=120,resizable=no,st
atus=no,toolbar=no')\"&gt;><img src=\"images/blue_square.gif\" border=0
height=16 width=16></td>");
else
Response.Write("<td align='center'
bgcolor=#ffffff>&nbsp;&nbsp;&nbsp;&nbsp;</td>");
}

This will create a table with blue clickable sqares for selected days.
After clicking on the sqare, it will open a popup with some data I need.
All is fine to here. After the Session is timed out, after I click on
the blue sqare the popup will open but inside is the login page of the
application. The popup code does not have any code regarding security so
it should open normally.
When I compile step by step, after the timeout, the run will not pass
through the popup code. Please help.

Thanks in advance,
Dan

*** Sent via Developersdex http://www.developersdex.com ***

Nov 17 '05 #2
Yes, I am using Form auth. How can I bypass this redirect to the logon
page ? In the worst case, I need that when the session is timed out,
this wfpopup.aspx page to be redirected to a simple page with the
"Session expired. Please login" text not to the logon page. How can I do
that ?

Thank you,
Dan

*** Sent via Developersdex http://www.developersdex.com ***
Nov 17 '05 #3
You can't bypass the logon, as the check happens at the application level
via the .net framework, so the redirect happens before the page is properly
accessed. You could either add the code into the page_load of the login page
to check the referrer, and popup the page accordingly, or else use a htm as
the popup(as the extension exists outside the .net framework).

Another option is to use a subfolder with it's own configuration.
web.config's work in a hierarchial tree based way, so you could have your
popup page in another directory, that contains it's own web.config, that
allows unauthenticated access to it i.e.

javascript:window.open('unauth/wfpopup.aspx....

Cathal
"Dan Pavel" <my**************@yahoo.com> wrote in message
news:%2****************@TK2MSFTNGP14.phx.gbl...
Yes, I am using Form auth. How can I bypass this redirect to the logon
page ? In the worst case, I need that when the session is timed out,
this wfpopup.aspx page to be redirected to a simple page with the
"Session expired. Please login" text not to the logon page. How can I do
that ?

Thank you,
Dan

*** Sent via Developersdex http://www.developersdex.com ***

Nov 17 '05 #4
Hi,

I added in the Form_Load of the logon page a referrer check and
redirected to a html page containig an error message.

Thank you,
Dan

*** Sent via Developersdex http://www.developersdex.com ***
Nov 17 '05 #5
Hi,

I added in the Form_Load of the logon page a referrer check and
redirected to a html page containig an error message.

Thank you,
Dan

*** Sent via Developersdex http://www.developersdex.com ***
Nov 17 '05 #6

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

Similar topics

38
by: Shaun McKinnon | last post by:
HI...Here's my problem...I have a popup window that loads when i want it to, but it's not sized properly. I've set the size, but it doesn't seem to work. I've been on 8 different websites to find...
16
by: Greg G | last post by:
I'm trying to open a popup window and then set some data, but I can't seem to make it work. I'm sure I'm missing something obvious. popwin = document.open('mypop.html', \"external\", \"width=\"...
4
by: DavidS | last post by:
First: There are several ways to confuse one regarding session timeout. (1) web.config - <sessionState timeout="20"> (2) IIS Manager | Internet Information Services | ServerNode | Default Web Site...
2
by: tao lin | last post by:
Hi, all I am using VS2003 under WinXP. My WebApp has a WebForm which has a html form has some search condition textbox, once the user fill in the condition and click submit button. My app will...
8
by: bdeviled | last post by:
I am deploying to a web environment that uses load balancing and to insure that sessions persist across servers, the environment uses SQL to manage sessions. The machine.config file determines how...
17
by: jensen bredal | last post by:
Hello, i'm struggling with a somehow badly understood session scenario. I provide acces to my pages based on form authentication using Session cookies. Som of my pages are supposed to be...
1
by: Kalyani | last post by:
Hi, I have a page with a button.On click of this button a popup window opens.Now if this window is kept open until session timeout then login page opens in the same window. Now I want that the...
3
by: atn2002 | last post by:
I'm trying to create a control which when the mouse button gets pressed on one div an absolute positioned div pops up in place of the cursor. From there the cursor should interact with the dialog...
4
by: goscottie | last post by:
I used submodal as my popup window. With some tweaks, it working great in my app. However, I can't find a way to detect session timeout in the popup window. The app is a form based...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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...

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.