473,800 Members | 2,607 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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=\"javas cript:window.op en('wfpopup.asp x?ID="+workflow[i]+"&DAY="+
j.ToString()+"' ,'','width=250, height=180,left =20,top=120,res izable=no,st
atus=no,toolbar =no')\"&gt;><im g src=\"images/blue_square.gif \" border=0
height=16 width=16></td>");
else
Response.Write( "<td align='center'
bgcolor=#ffffff >&nbsp;&nbsp;&n bsp;&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 2130
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******** ********@TK2MSF TNGP10.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=\"javas cript:window.op en('wfpopup.asp x?ID="+workflow[i]+"&DAY="+
j.ToString()+"' ,'','width=250, height=180,left =20,top=120,res izable=no,st
atus=no,toolbar =no')\"&gt;><im g src=\"images/blue_square.gif \" border=0
height=16 width=16></td>");
else
Response.Write( "<td align='center'
bgcolor=#ffffff >&nbsp;&nbsp;&n bsp;&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:wind ow.open('unauth/wfpopup.aspx... .

Cathal
"Dan Pavel" <my************ **@yahoo.com> wrote in message
news:%2******** ********@TK2MSF TNGP14.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
5092
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 out what i'm doing wrong, and so far it seems i'm doing it the right way. Here's my code...any suggestions would be appreciated. <script language="javascript"> <!-- window.open("256fx/index.htm", "", "height=400, width=600"); //-->
16
1877
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=\" + w +\",height=\" + h + \",resizable=no,scrollbars=no,status=yes,location=no,toolbar=no,menubar=no\"); popwin.document.data.user=user; mypop.html has a <form name=data> with an element named "user" in it. Essentially, I want to be able to pop...
4
15472
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 | Properties | Configuration | Options | Enable Session State Session timeout 20 (3) within Global.asax.vb file - Session_Start subroutine can use Session.Timeout=x minutes or (4) within any web page, i.e., <web page>.aspx can use...
2
2078
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 stay in the same WebForm but open a popup window in the browser to show the search results. So I implement like this: private void btnSubmit_Click(object sender, System.EventArgs e)
8
5500
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 all applications will use sessions and to insure that all application use this method, the session properties cannot be overriden. Within the sessionstate tags, the webadmin (upon my request)r emoved the property for timeout, hoping that...
17
5218
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 running continuously and refreshing once an hour. I there set timeout= 61 in <sessionState section and on my page it says <meta http-equiv="refresh" content="3600">. I also set timeout=120 in the <forms section of web.config to make sure
1
3239
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 popup window should be closed on session timeout and login page should be opened in its parent window.How can I do that? Please do tell me if any one knows. Thanks in advance,
3
6864
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 before the mouse button is released. In other words one element will catch onmousedown, display the popup, and the popup element will catch onmouseup. This works fine in IE as the popup automatically accepts following events, but my problem is...
4
7184
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 authentication so the default.aspx page will show up in the popup. So I'm looking into several options. 1. detect session timeout in javascript so that I prevent the popup from even happening. I can simply redirect or post to itself so that the calling...
0
9690
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10501
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10250
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10032
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9085
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7574
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5469
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4149
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3764
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.