Child window close / Parent Session problem

X

Xing Rong

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!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,226
Members
46,815
Latest member
treekmostly22

Latest Threads

Top