Welcome to Dream.In.Code
Getting Help is Easy!

Join 132,282 Programmers for FREE! Get instant access to thousands of experts, tutorials, code snippets, and more! There are 1,248 people online right now. Registration is fast and FREE... Join Now!




Session problems

 
Reply to this topicStart new topic

Session problems, window.parent.location.href Starts a new session

garyleehughes
post 2 Oct, 2008 - 04:45 AM
Post #1


New D.I.C Head

*
Joined: 2 Oct, 2008
Posts: 3

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.
CODE

'//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
CODE

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>")
User is offlineProfile CardPM

Go to the top of the page

garyleehughes
post 8 Oct, 2008 - 11:53 AM
Post #2


New D.I.C Head

*
Joined: 2 Oct, 2008
Posts: 3

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."
User is offlineProfile CardPM

Go to the top of the page

garyleehughes
post 22 Oct, 2008 - 11:07 AM
Post #3


New D.I.C Head

*
Joined: 2 Oct, 2008
Posts: 3

The problem seemed to go away after several attempts on fixing it. This thread can be closed, no real resolution.
User is offlineProfile CardPM

Go to the top of the page

Fast ReplyReply to this topicStart new topic
Time is now: 11/22/08 12:45AM

Live Help!

Tutorials

Programming

Web Development

Reference Sheets

Code Snippets

Bye Bye Ads

Free DIC T-Shirt

T-Shirt Example

Related Sites

Monthly Drawing

Thumb Drive

Partners

Top Contributors

Top 10 Kudos This Month