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

Child window close / Parent Session problem

I have an asp page to authenticate users by checking their
uid and password:

---------------------------------------
If (request("UID") = "user" and request("Password") = "pwd") then
session("UID") = "user"
Session.Timeout= 300
End if
---------------------------------------

For other ASP pages, I have

---------------------------------------
if not IsUser() then response.redirect "Login.asp"

-- Here is the function
function IsUser ()
IsUser = False
if session("UID") = "user " then IsUser = True
End function
---------------------------------------

I also have a help link on each page. If you click the
link, a child window pops up using javascript.

---------------------------------------
<a href="#" onClick="openWindow
('../Help/default.asp','','menubar=yes,scrollbars=yes,width= 600,height=400')">
---------------------------------------

<script language="JavaScript" type="text/JavaScript">

function openWindow (theURL,winName,features) {
window.open(theURL,winName,features);
}

</script>
---------------------------------------

Now, My problem is: I click the link, a pop-up child
window opened, I close the child window, back to the
parent page and refresh, it redirect me to the login page. Looks like
the session is terminated.

However, If I first login to my Yahoo email account and re-
do the above, no problems at all.

Is it strange? Anyone has any ideas?

Thanks!
Jul 20 '05 #1
1 14471
I am having the same problem only with an aspx page. I my computer where i run tests using my local IIS the window.close does not cause any problems(session does not end).
But, when i put the page on the production server and click the window.close link on the popup window it ends the session.
The real strange thing is the page also closes using window.close after a
3 seconds if user not close window himself, but this does not cause the
session to end.
I've been looking around and you are the only one I could find with similar problem, which makes me think that it might be fixed through iis and some setting.
Just wondering if there is anyone else out there that has come up with this problem and if there is a solution to it.
Sep 8 '05 #2

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

Similar topics

1
by: Joe D | last post by:
I think this is a simple question. But I am new to JS. Here is what I want to do: From a parent window, open a popup window (child) to get data from user, then user submit the request, close the...
1
by: Tomas Vera | last post by:
Hello All, I'm working on a web app that will simulate a Windows app. One of the items that I've trouble reproducing is the parent/child interaction that might occur between a windo and popup...
2
by: Raj | last post by:
Hi All, I have a problem with trying to refresh the parent window from child window in order to update data in the parent window. The sequence of events are 1) I click a button in the parent...
3
by: Isabel | last post by:
How can you close all child browser windows that where open by a parent browser window? I have links on a parent (main) page that opens the child page as a separate browser. However, I need to be...
1
by: Earl Teigrob | last post by:
I did a ton of searching to try and find a simple solution to this issue and finally wrote my own, which I am sharing with everyone. In my searching, I did find a very complete and robust solution at...
2
by: Paul | last post by:
Hi this is related to a previous post, hopefully just a bit clearer description o the problem. I have a parent form that opens a new form (child form) while still leaving the parent form open....
10
by: Charles Law | last post by:
For some reason, when I click the X to close my MDI parent form, the action appears to be re-directed to one of the MDI child forms, and the parent remains open. I am then unable to close the...
4
by: Buddha | last post by:
Hello, I posted this on two forums, without too much help .. and I am kinda stuck in this. I need to refresh the parent page from the second child window which is opened by the first child and...
29
Frinavale
by: Frinavale | last post by:
I have 2 FireFox (version 2) browser windows opened. One is the child of the other. When the user is finished with the child window, a method in the parent window is called to refresh a...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
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...

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.