Unanswered: losing cookies and changing session.id, ... why?
I have developed a web application using IIS 5.1 and asp pages and IE 6.0.
Problem is that it loses some of the cookies if more than 2 new windows are opened. If forms on adddata.asp, T1.asp and T2.asp are filled in and submitted it works fine, but I cannot go any further than this because it drops cookies, and not always the same ones either. It also changes the session.id even though there has been no change in domain or even directory.
No disrespect intended but, I think it might be the code... if it was the browser I think it would be less erratic. I'll find some time this afternoon to have a good go over the code. I suspect it has something to do with this
varT3_2 = request.cookies("T3cookie")
For x=1 to varT3_2
Response.Cookies("Reason_T3_" & x)=request("Reason_T3_" & x)
Response.Cookies("Date_T3_" & x)=request("Date_T3_" & x)
Response.Cookies("ConNote_T3_" & x)=request("ConNote_T3_" & x)
Response.Cookies("T3Attempt_" & x)=request("T3Attempt_" & x)
But I'm not sure why.... are you setting the T3cookie correctly because I can't find any other reference to it.
Hmmm,.. okie, well I have had a look and I can't see anything wrong with it to be honest,... do you have this up somewhere where I can play with the whole thing just to see the behaviour you have meantioned?
Just a thought,... if you are losing your session id, or rather it is changing, it almost infers that your conneciton is being dropped,... what sort of server software are you using?
Sorry - it is only on our intranet. No web access is possible because if the location of the database. The web server has Windows XP, IIS 5 and the web pages connect to another server that has Oracle 8 installed. How can I test to see if the connection is being dropped?
Thanks for the help... can you think of anything else I can try?
Cool, all looks sweet. Since this is an intranet app you could probably get away without using cookies at all and instead use a hidden form field to how all the details (probably storing it as XML or something).
Also if you are moving it to a single page and thus not loosing your sessionid perhaps you could store everything in session variables...
Yet another thought would be to have a single page with div's for each section. You would have to use some DHTML to dynamicly create the required number of fields but it should work okie.
Anyhow, hope I was of some help. Sorry I couldn't solve the orginal problem.