Session problems

window.parent.location.href Starts a new session

Page 1 of 1

2 Replies - 2986 Views - Last Post: 22 October 2008 - 12:07 PM Rate Topic: -----

#1 garyleehughes   User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 3
  • Joined: 02-October 08

Session problems

Posted 02 October 2008 - 05:45 AM

Problem: window.parent.location.href starts a new session when save button is clicked and I really do not want this to happen.

Page Layout: I have an old asp (vb6) app page Running with an I frame window opening the asp 2.0 page. I am using the latest ajax build. Save button is within a user control that delegates events to other pages to resolve.

What I Do Know: This works fine under Windows XP with Visual Studio 2005 testing. This works fine with Windows 2000 Server running IIS 5. This works fine with Windows 2008 Running IIS 7 in 64 bit mode. This does not work under Windows 2003 running II6 in 64 bit mode. and this is where I really need it to work right now.

Conclusion: Am I even on the right track?

In the onload event of My aspx page.
'//Load Delegates
		SigPanel.delHandler = New SignaturePanel.OnDelete(AddressOf SigPanel_delHandler)
		SigPanel.svHandler = New SignaturePanel.OnSave(AddressOf SigPanel_svHandler)

'//Collect Path information for all forms from any server
		provider = CType(HttpContext.Current, IServiceProvider)
		util = CType(provider.GetService(GetType(HttpRequest)), HttpRequest)
		wr = CType(provider.GetService(GetType(HttpWorkerRequest)), HttpWorkerRequest)
		ImagePath = System.Configuration.ConfigurationManager.AppSettings("imagepath") & "/"
		ImgPath = ImagePath.Replace("~", "../../..")
		WebPath = wr.GetProtocol() & "://" & Request.Headers("HOST") & System.Configuration.ConfigurationManager.AppSettings("website") & "/"




In the Save Button Handler event
Response.Write("<br><b>Changes have been saved.</b><br>")

		Response.Write("<img src=""" & ImgPath & "indicator_medium.gif"" width=20 height=10 /><em>Please wait while the page is refreshed...</em>")
		Response.Write("<script>" & vbNewLine)
		Response.Write("setTimeout(window.parent.location.href = """ & WebPath & "chartroom_chart.asp?TimeLastAccessed=" & Now() & "&DocumentType=NewEvaTreatmentPlan&ClientRecordID=" & Eva.GetClientRecordID(IDClient) & "&DocumentRecordID=" & IDRecord & "#NewEvaTreatmentPlan"", 500);" & vbNewLine)
		Response.Write("</script>")



Is This A Good Question/Topic? 0
  • +

Replies To: Session problems

#2 garyleehughes   User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 3
  • Joined: 02-October 08

Re: Session problems

Posted 08 October 2008 - 12:53 PM

Problem still exists but found out some new Information.


Running IE 7.0.5730.11 from any XP machine, the above session problem holds true. Running it from Vista IE 7.0.6001.18000 it works the way I need it to.

I have tried several windows XP machines some with servicepack 3 and others with only service pack 2. It doesnt really matter what updates are on it, the application still ends the session.




"Still waiting for the brave willing soul to venture forth and delve into this problem."
Was This Post Helpful? 0
  • +
  • -

#3 garyleehughes   User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 3
  • Joined: 02-October 08

Re: Session problems

Posted 22 October 2008 - 12:07 PM

The problem seemed to go away after several attempts on fixing it. This thread can be closed, no real resolution.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1