frameset and loss of session

From: David Shorthouse (davidshorthouse_at_shawyourclothes.ca)
Date: 01/26/05


Date: Wed, 26 Jan 2005 10:39:34 -0700

Hey folks,

    I have IIS running on a dynamic IP so have had to make use of
www.dyndns.org to make sure that a call to the site's WWW address will make
it to the appropriate IP. There is an option in the www.dyndns.org account
settings to mask a redirect, which essentially makes a frameset and hides
the actual WWW address. This is a nice feature, but the problem is I have a
number of asp forms that permit posting data to an Access database and I
pass a session variable between these pages to maintain a visitor's session.

    So, in place of Response.Redirect, I used Server.Transfer, which seems
to work and preserves the frameset made by www.dyndns.org. The problem is,
once a visitor logs in to my login asp page, he/she is then redirected to a
user interface asp page of sorts with a number of buttons that direct
him/her to other asp pages. I have these buttons configured to redirect with
an onclick, such as onclick = "parent.location='mypage.asp'", but of course
that doesn't preserve the framset. I also tried onclick =
"parent.frames[1].location='mypage.asp'", but the session state gets
dropped. Is there any way to preserve the session state across asp pages
when in a frameset like this using buttons for onclick redirects?

Thanks for any advice,

Dave