Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

2 Pages12>
Loosing session state
Nigel
#1 Posted : Tuesday, April 8, 2008 10:15:33 AM(UTC)
Groups: Member
Joined: 4/8/2008(UTC)
Posts: 15

Much impressed with the web server ... running my (ex-IIS 6) app within 15 minutes of download.

My web app opens a number of pop-up windows - after closing a pop-up window I seem to lose the session state in the opening window, resulting in my app returning to the user logon window.

Everything else is going so well ... but this is a complete stopper. Appreciate any suggestions.



Ultidev Team
#2 Posted : Tuesday, April 8, 2008 10:28:41 AM(UTC)
Ultidev Team

Groups: Administration
Joined: 11/3/2005(UTC)
Posts: 2,253

Thanks: 28 times
Was thanked: 60 time(s) in 59 post(s)
Hi, Nigel!

Thank you for the positive feedback.

The issue you have described does not sound familiar, so let us try to troubleshoot this issue with your help.

Could you please start with enabling trace into on your ASP.NET page by doing the <@Page Trace="true" ...>. It should tell you what cookies you get, and therefore will help us to understand if something happens with the cookie carrying session ID.

Best regards,
UltiDev Team.
Please donate at http://www.ultidev.com/products/Donate.aspx to help us improve our products.
Nigel
#3 Posted : Tuesday, April 8, 2008 11:23:08 AM(UTC)
Groups: Member
Joined: 4/8/2008(UTC)
Posts: 15

Hi

thank you for the speed of your response.

My app actually runs as a httpHandler. I have put a trace into the core IHttpHandler.ProcessRequest which is the entry point for all requests to the application.

When I close a pop-up window, javascript in the pop-up window requests the opening window to refresh it's contents - when this request hits the server it appears to start new sessions.

This does not always happen with the ultidev server, and never happens under IIS 6. I am using internet explorer 7.

A fragment of the trace follows:-

08/04/2008 21:03:15 > Session Id:ivre2045jdtvevuahoibco45
08/04/2008 21:03:15 > Session Id:ivre2045jdtvevuahoibco45
08/04/2008 21:03:18 > Session Id:ivre2045jdtvevuahoibco45
08/04/2008 21:03:21 > Session Id:w5b3wkikchpzmlr33oi2u245
08/04/2008 21:03:21 > Session Id:yaksck55exddmt20x3mkzb45

The last lines shows new sessions starting ... which is the problem

Appreciate any help you can give with this.

regards
Nigel





Ultidev Team
#4 Posted : Tuesday, April 8, 2008 11:39:38 AM(UTC)
Ultidev Team

Groups: Administration
Joined: 11/3/2005(UTC)
Posts: 2,253

Thanks: 28 times
Was thanked: 60 time(s) in 59 post(s)
Nigel,

Let's make sure that IE sends the session cookie back to the server. If not, then it's no wonder new session gets created. Since you are not working with a page, but rather with a handler, we suggest you install Fiddler - a very simple to use HTTP tracer that will intercept the traffic between the client and server, and you'll see whether your app gets the session cookie back from the client. When using fiddler, please be sure to run it on the same PC where your browser is, and use non-localhost-based URL: please use http://machinename:port/ instead of http://localhost:port/.

Another possibility to consider is this. There is a difference between default configuration of IIS and UltiDev Cassini. In IIS all requests for non-ASP files, like images, CSS and scripts are not routed through ASP.NET, and instead served by IIS straight up. In Cassini all requests are routed through ASP.NET, meaning that your handler gets a shot at requests for CSS, GIF, etc. If for any reason logic in the handler terminates the session when it's working with unexpected requests, then you could observe the behavior you described.

Please let us know what you found out.

Best regards,
UltiDev Team.
Please donate at http://www.ultidev.com/products/Donate.aspx to help us improve our products.
Nigel
#5 Posted : Thursday, April 10, 2008 3:19:33 AM(UTC)
Groups: Member
Joined: 4/8/2008(UTC)
Posts: 15

Thank you for your response. I have narrowed the problem down somewhat.

To explain a little of the application background, the application processes http requests for urls of the form *.axw, so we don't actually see or process requests for anything else (i.e images, css, js etc are dealt with by IIS / Cassini).

In the web.config this is as follows:-

<httpHandlers>
<add path="*.axw" verb="*" type="myWeb.axWeb" validate="false"/>
</httpHandlers>


When the error occurs (i.e. a new session is started incorrectly) there have been no application exceptions occuring from any .axw requests.

What I have found is that the problem occurs immediately following use of a modal dialog window (IE7 showModalDialog). Whilst the modal dialog operates successfully, the underlying window loses its session state. I can repeat this, and will endeavour to get a trace with fiddler later.

I have been running this on my development machine (Windows XP Pro, machine name shark), accessing the application using:-

http://shark:7756/GoToApplication.aspx?AppID=b0def1ae-a16a-4990-bae0-95e5ad2deb34

in this mode, the problem occurs.

If I run this via local host, as in

http://localhost:7756/GoToApplication.aspx?AppID=b0def1ae-a16a-4990-bae0-95e5ad2deb34

the problem does not occur.

The application itself does operate fully and successfully under IIS 6 and under the VS2005 ASP.NET development server.

I append a short section of my own annotated trace showing the change to the session id.

Appreciate any feedback as this really does look worthwhile.

10/04/2008 12:11:49 >
Request:http://shark:2975/alertCheck.axw
Session Id:12eefc45xgv0xjbzlz4i1z45
10/04/2008 12:11:49 >
Request:http://shark:2975/AlertListPage.axw
Session Id:12eefc45xgv0xjbzlz4i1z45
10/04/2008 12:11:55 >
Request:http://shark:2975/AlertRemind.axw?alertId=48475
Session Id:12eefc45xgv0xjbzlz4i1z45
10/04/2008 12:11:55 >
Request:http://shark:2975/Calender.axw?1|1|||Remind me later
Session Id:12eefc45xgv0xjbzlz4i1z45
#-----------------------------------------------------------------------
# Calender.axw is run in a modal dialog window - the window is closed.
# The Session Id changes for the next request - This is wrong
# which causes UserLogon.axw to be displayed
#-----------------------------------------------------------------------
10/04/2008 12:11:58 >
Request:http://shark:2975/ClientListPage.axw?findChr=0&findStr=
Session Id:wat4e345wxf2v2453co5lg55
10/04/2008 12:11:58 >
Ultidev Team
#6 Posted : Thursday, April 10, 2008 4:49:28 AM(UTC)
Ultidev Team

Groups: Administration
Joined: 11/3/2005(UTC)
Posts: 2,253

Thanks: 28 times
Was thanked: 60 time(s) in 59 post(s)
Nigel, could you please confirm that you don't have this issue IIS? The reason we ask is because there was a bug (at least as of 2004) with IE modal dialog breaking the session: http://www.velocityrevie...es-loss-of-session.html

Best regards,
UltiDev Team.
Please donate at http://www.ultidev.com/products/Donate.aspx to help us improve our products.
Nigel
#7 Posted : Thursday, April 10, 2008 8:17:51 AM(UTC)
Groups: Member
Joined: 4/8/2008(UTC)
Posts: 15

Thankyou for your response.

I have re-checked and can confirm that this does not happen with IIS.

Testing further today, I now see that this is not just related to a modal window but, in fact, any window that is opened from the main browser window.

Also, it does occur (loosing session state) whether using the //localhost or via my intranet to '//shark' being my PC.

What seems to happen is that, when a new window is opened, the orginal 'opener' window looses its session status.

If however you have another browser window (or tab under IE7) open (nothing to do with the application e.g. www .google .com ) - the problem does not occur.

I sense there is something odd at the microsoft IE end, reading into your link to velocity, but difficult to see where to go with this now as it seems ok with IIS?

Ultidev Team
#8 Posted : Thursday, April 10, 2008 8:38:45 AM(UTC)
Ultidev Team

Groups: Administration
Joined: 11/3/2005(UTC)
Posts: 2,253

Thanks: 28 times
Was thanked: 60 time(s) in 59 post(s)
Thank you, Nigel.

It's an interesting info. Still you probably want to give Fiddler a shot. Since cookie could be eliminated by either sides of the connection, we need do see who ends up not sending the cookie: Cassini or IE; and how session cookie looks like on its final trip from the server to the client.

Best regards,
UltiDev Cassini.
Please donate at http://www.ultidev.com/products/Donate.aspx to help us improve our products.
Nigel
#9 Posted : Sunday, April 13, 2008 7:14:27 AM(UTC)
Groups: Member
Joined: 4/8/2008(UTC)
Posts: 15

I have installed and run fiddler ... but a little unsure of what I am looking for. I have a highlighted / annotated 'shortest route to the problem' trace of the requests thru fiddler which I will try to append to this post as I cannot see a way of attaching a file.

To refresh, the application has run in production for > 4 months under IIS 6. If I have a second browser window/tab open anywhere, the problem does not occur.

Pls advise if I can provide anything further ... really could use a solution.


Sending Login data to application

POST /UserLogon.axw HTTP/1.1
Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/vnd.ms-powerpoint, application/vnd.ms-excel, application/msword, application/x-shockwave-flash, application/x-silverlight, */*
Referer: http://shark:2975/UserLogon.axw
Accept-Language: en-gb
Content-Type: application/x-www-form-urlencoded
UA-CPU: x86
Accept-Encoding: gzip, deflate
User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; .NET CLR 1.0.3705; .NET CLR 2.0.50727)
Proxy-Connection: Keep-Alive
Content-Length: 61
Host: shark:2975
Pragma: no-cache
Cookie: ASP.NET_SessionId=ci24ecmvkk0dc455ucya5yzc


HTTP/1.1 200 OK
Server: UltiDev Cassini/2.1.4.3
Date: Sun, 13 Apr 2008 15:45:44 GMT
X-AspNet-Version: 2.0.50727
Cache-Control: private
Content-Type: text/html; charset=utf-8
Content-Length: 52
Connection: Close





Sending home page to browser
GET /home.axw HTTP/1.1
Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/vnd.ms-powerpoint, application/vnd.ms-excel, application/msword, application/x-shockwave-flash, application/x-silverlight, */*
Accept-Language: en-gb
UA-CPU: x86
Accept-Encoding: gzip, deflate
User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; .NET CLR 1.0.3705; .NET CLR 2.0.50727)
Host: shark:2975
Proxy-Connection: Keep-Alive
Cookie: ASP.NET_SessionId=ci24ecmvkk0dc455ucya5yzc


HTTP/1.1 200 OK
Server: UltiDev Cassini/2.1.4.3
Date: Sun, 13 Apr 2008 15:45:44 GMT
X-AspNet-Version: 2.0.50727
Cache-Control: private
Content-Type: text/html; charset=utf-8
Content-Length: 17687
Connection: Close





More of home page
GET /FrameLeft.axw HTTP/1.1
Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/vnd.ms-powerpoint, application/vnd.ms-excel, application/msword, application/x-shockwave-flash, application/x-silverlight, */*
Referer: http://shark:2975/home.axw
Accept-Language: en-gb
UA-CPU: x86
Accept-Encoding: gzip, deflate
User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; .NET CLR 1.0.3705; .NET CLR 2.0.50727)
Proxy-Connection: Keep-Alive
Host: shark:2975
Cookie: ASP.NET_SessionId=ci24ecmvkk0dc455ucya5yzc


HTTP/1.1 200 OK
Server: UltiDev Cassini/2.1.4.3
Date: Sun, 13 Apr 2008 15:45:45 GMT
X-AspNet-Version: 2.0.50727
Cache-Control: private
Content-Type: text/html; charset=utf-8
Content-Length: 14747
Connection: Close





More of home page

GET /FrameTop.axw HTTP/1.1
Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/vnd.ms-powerpoint, application/vnd.ms-excel, application/msword, application/x-shockwave-flash, application/x-silverlight, */*
Referer: http://shark:2975/home.axw
Accept-Language: en-gb
UA-CPU: x86
Accept-Encoding: gzip, deflate
User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; .NET CLR 1.0.3705; .NET CLR 2.0.50727)
Proxy-Connection: Keep-Alive
Host: shark:2975
Cookie: ASP.NET_SessionId=ci24ecmvkk0dc455ucya5yzc


HTTP/1.1 200 OK
Server: UltiDev Cassini/2.1.4.3
Date: Sun, 13 Apr 2008 15:45:45 GMT
X-AspNet-Version: 2.0.50727
Cache-Control: private
Content-Type: text/html; charset=utf-8
Content-Length: 8397
Connection: Close





More of home page

GET /FrameMain.axw HTTP/1.1
Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/vnd.ms-powerpoint, application/vnd.ms-excel, application/msword, application/x-shockwave-flash, application/x-silverlight, */*
Referer: http://shark:2975/home.axw
Accept-Language: en-gb
UA-CPU: x86
Accept-Encoding: gzip, deflate
User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; .NET CLR 1.0.3705; .NET CLR 2.0.50727)
Proxy-Connection: Keep-Alive
Host: shark:2975
Cookie: ASP.NET_SessionId=ci24ecmvkk0dc455ucya5yzc


HTTP/1.1 200 OK
Server: UltiDev Cassini/2.1.4.3
Date: Sun, 13 Apr 2008 15:45:45 GMT
X-AspNet-Version: 2.0.50727
Cache-Control: private
Content-Type: text/html; charset=utf-8
Content-Length: 1228
Connection: Close





Automated request for 'alert status check'
GET /alertCheck.axw HTTP/1.1
Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/vnd.ms-powerpoint, application/vnd.ms-excel, application/msword, application/x-shockwave-flash, application/x-silverlight, */*
Referer: http://shark:2975/FrameTop.axw
Accept-Language: en-gb
UA-CPU: x86
Accept-Encoding: gzip, deflate
User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; .NET CLR 1.0.3705; .NET CLR 2.0.50727)
Proxy-Connection: Keep-Alive
Host: shark:2975
Cookie: ASP.NET_SessionId=ci24ecmvkk0dc455ucya5yzc


HTTP/1.1 200 OK
Server: UltiDev Cassini/2.1.4.3
Date: Sun, 13 Apr 2008 15:45:46 GMT
X-AspNet-Version: 2.0.50727
Cache-Control: private
Content-Type: text/html; charset=utf-8
Content-Length: 225
Connection: Close





Request for alert listing for home page
GET /AlertListPage.axw HTTP/1.1
Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/vnd.ms-powerpoint, application/vnd.ms-excel, application/msword, application/x-shockwave-flash, application/x-silverlight, */*
Referer: http://shark:2975/FrameMain.axw
Accept-Language: en-gb
UA-CPU: x86
Accept-Encoding: gzip, deflate
User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; .NET CLR 1.0.3705; .NET CLR 2.0.50727)
Proxy-Connection: Keep-Alive
Host: shark:2975
Cookie: ASP.NET_SessionId=ci24ecmvkk0dc455ucya5yzc


HTTP/1.1 200 OK
Server: UltiDev Cassini/2.1.4.3
Date: Sun, 13 Apr 2008 15:45:46 GMT
X-AspNet-Version: 2.0.50727
Cache-Control: private
Content-Type: text/html; charset=utf-8
Content-Length: 3213
Connection: Close





Request for new window with alert acknowledgement page
GET /AlertAck.axw?alertId=48475 HTTP/1.1
Accept: */*
Accept-Language: en-gb
UA-CPU: x86
Accept-Encoding: gzip, deflate
User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; .NET CLR 1.0.3705; .NET CLR 2.0.50727)
Host: shark:2975
Proxy-Connection: Keep-Alive
Cookie: ASP.NET_SessionId=ci24ecmvkk0dc455ucya5yzc

>>>>>>>>>> I SEE THAT THIS DOES NOT INCLUDE A REFERRER ... THE RESULT IS SHOWN IN A NEW (NON-MODAL) WINDOW ... WHICH IS THEN CLOSED BY THE USER .. Focus returning to the main page

HTTP/1.1 200 OK
Server: UltiDev Cassini/2.1.4.3
Date: Sun, 13 Apr 2008 15:45:51 GMT
X-AspNet-Version: 2.0.50727
Cache-Control: private
Content-Type: text/html; charset=utf-8
Content-Length: 2879
Connection: Close





A further request from the home page for a client list ... this errors as no session data is available
GET /ClientListPage.axw?findChr=0&findStr= HTTP/1.1
Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/vnd.ms-powerpoint, application/vnd.ms-excel, application/msword, application/x-shockwave-flash, application/x-silverlight, */*
Referer: http://shark:2975/FrameMain.axw
Accept-Language: en-gb
UA-CPU: x86
Accept-Encoding: gzip, deflate
User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; .NET CLR 1.0.3705; .NET CLR 2.0.50727)
Proxy-Connection: Keep-Alive
Host: shark:2975

>>>>>>>>> NO COOKIE IS INCLUDED IN THIS REQUEST ... So application returns the user logon page
>>>>>>>>> The referrer (FrameMain) is the same instance as the earlier referrer for the AlertListPage.axw

HTTP/1.1 200 OK
Server: UltiDev Cassini/2.1.4.3
Date: Sun, 13 Apr 2008 15:45:55 GMT
X-AspNet-Version: 2.0.50727
Cache-Control: private
Content-Type: text/html; charset=utf-8
Content-Length: 150
Connection: Close





Application returns the logon page as no session data available
GET /UserLogon.axw HTTP/1.1
Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/vnd.ms-powerpoint, application/vnd.ms-excel, application/msword, application/x-shockwave-flash, application/x-silverlight, */*
Accept-Language: en-gb
UA-CPU: x86
Accept-Encoding: gzip, deflate
User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; .NET CLR 1.0.3705; .NET CLR 2.0.50727)
Host: shark:2975
Proxy-Connection: Keep-Alive


HTTP/1.1 200 OK
Server: UltiDev Cassini/2.1.4.3
Date: Sun, 13 Apr 2008 15:45:55 GMT
X-AspNet-Version: 2.0.50727
Cache-Control: private
Content-Type: text/html; charset=utf-8
Content-Length: 4298
Connection: Close





Ultidev Team
#10 Posted : Sunday, April 13, 2008 6:29:40 PM(UTC)
Ultidev Team

Groups: Administration
Joined: 11/3/2005(UTC)
Posts: 2,253

Thanks: 28 times
Was thanked: 60 time(s) in 59 post(s)
Hi, Nigel.

It's something. We established that client does not send in the session ID, but now we need to know whether the application makes it do it, or some kind of a bug in IE. For that we need to see the headers of the response returned by the application when a page for the new window (GET /AlertAck.axw?alertId=48475) was requested. If there is a Set-cookie response header for the session ID, we would like to see how it looks like. If there is no such header, we would like to ask you to look at responses for prior requests and find the last request with Set-cookie header for the session ID. We want to make sure it's good.

All the best.
UltiDev Team.
Please donate at http://www.ultidev.com/products/Donate.aspx to help us improve our products.
Nigel
#11 Posted : Sunday, April 13, 2008 11:18:46 PM(UTC)
Groups: Member
Joined: 4/8/2008(UTC)
Posts: 15

Hi - Thanks for getting back to me. I realise now that I omitted the key part of the fiddler trace I sent in my last post; the following preceeded the portion of the trace that I posted - and I see from this that there is only one SET-COOKIE in the whole trace, which is in the response headers of the first request (GET /GoToApplication.aspx). I wonder if this explains the issue? Appreciate any feedback.


_______________________________________________________________________________

GET /GoToApplication.aspx?AppID=b0def1ae-a16a-4990-bae0-95e5ad2deb34 HTTP/1.1
Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/vnd.ms-powerpoint, application/vnd.ms-excel, application/msword, application/x-shockwave-flash, application/x-silverlight, */*
Accept-Language: en-gb
UA-CPU: x86
Accept-Encoding: gzip, deflate
User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; .NET CLR 1.0.3705; .NET CLR 2.0.50727)
Host: shark:7756
Proxy-Connection: Keep-Alive
Pragma: no-cache


HTTP/1.1 302 Found
Server: UltiDev Cassini/2.1.4.3
Date: Sun, 13 Apr 2008 15:45:35 GMT
X-AspNet-Version: 2.0.50727
Location: http://shark:2975/Default.htm
Set-Cookie: ASP.NET_SessionId=ci24ecmvkk0dc455ucya5yzc; path=/; HttpOnly
Cache-Control: private
Content-Type: text/html; charset=utf-8
Content-Length: 146
Connection: Close





GET /Default.htm HTTP/1.1
Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/vnd.ms-powerpoint, application/vnd.ms-excel, application/msword, application/x-shockwave-flash, application/x-silverlight, */*
Accept-Language: en-gb
UA-CPU: x86
Accept-Encoding: gzip, deflate
User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; .NET CLR 1.0.3705; .NET CLR 2.0.50727)
Host: shark:2975
Proxy-Connection: Keep-Alive
Pragma: no-cache
If-None-Match: "1C83365D2B74A00:1C89D453C6B5812"
Cookie: ASP.NET_SessionId=ci24ecmvkk0dc455ucya5yzc


HTTP/1.1 304 Not Modified
Server: UltiDev Cassini/2.1.4.3
Date: Sun, 13 Apr 2008 15:45:35 GMT
X-AspNet-Version: 2.0.50727
Cache-Control: public
Expires: Mon, 14 Apr 2008 09:03:27 GMT
Last-Modified: Fri, 30 Nov 2007 15:29:40 GMT
ETag: "1C83365D2B74A00:1C89D453C6B5812"
Connection: Close





GET /styles/Dialog.css HTTP/1.1
Accept: */*
Referer: http://shark:2975/Default.htm
Accept-Language: en-gb
UA-CPU: x86
Accept-Encoding: gzip, deflate
If-None-Match: "1C87DED6E38DA80:1C89D74D97EA242"
User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; .NET CLR 1.0.3705; .NET CLR 2.0.50727)
Host: shark:2975
Proxy-Connection: Keep-Alive
Pragma: no-cache
Cookie: ASP.NET_SessionId=ci24ecmvkk0dc455ucya5yzc


HTTP/1.1 304 Not Modified
Server: UltiDev Cassini/2.1.4.3
Date: Sun, 13 Apr 2008 15:45:35 GMT
X-AspNet-Version: 2.0.50727
Cache-Control: public
Expires: Mon, 14 Apr 2008 14:44:17 GMT
Last-Modified: Tue, 04 Mar 2008 11:46:49 GMT
ETag: "1C87DED6E38DA80:1C89D74D97EA242"
Connection: Close





GET /images/logo.gif HTTP/1.1
Accept: */*
Referer: http://shark:2975/Default.htm
Accept-Language: en-gb
UA-CPU: x86
Accept-Encoding: gzip, deflate
If-None-Match: "1C87DED51040C00:1C89D74D998DC20"
User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; .NET CLR 1.0.3705; .NET CLR 2.0.50727)
Host: shark:2975
Proxy-Connection: Keep-Alive
Pragma: no-cache
Cookie: ASP.NET_SessionId=ci24ecmvkk0dc455ucya5yzc


HTTP/1.1 304 Not Modified
Server: UltiDev Cassini/2.1.4.3
Date: Sun, 13 Apr 2008 15:45:35 GMT
X-AspNet-Version: 2.0.50727
Cache-Control: public
Expires: Mon, 14 Apr 2008 14:44:17 GMT
Last-Modified: Tue, 04 Mar 2008 11:46:00 GMT
ETag: "1C87DED51040C00:1C89D74D998DC20"
Connection: Close





GET /home.axw HTTP/1.1
Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/vnd.ms-powerpoint, application/vnd.ms-excel, application/msword, application/x-shockwave-flash, application/x-silverlight, */*
Accept-Language: en-gb
UA-CPU: x86
Accept-Encoding: gzip, deflate
User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; .NET CLR 1.0.3705; .NET CLR 2.0.50727)
Host: shark:2975
Proxy-Connection: Keep-Alive
Cookie: ASP.NET_SessionId=ci24ecmvkk0dc455ucya5yzc


HTTP/1.1 200 OK
Server: UltiDev Cassini/2.1.4.3
Date: Sun, 13 Apr 2008 15:45:37 GMT
X-AspNet-Version: 2.0.50727
Cache-Control: private
Content-Type: text/html; charset=utf-8
Content-Length: 150
Connection: Close





GET /UserLogon.axw HTTP/1.1
Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/vnd.ms-powerpoint, application/vnd.ms-excel, application/msword, application/x-shockwave-flash, application/x-silverlight, */*
Accept-Language: en-gb
UA-CPU: x86
Accept-Encoding: gzip, deflate
User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; .NET CLR 1.0.3705; .NET CLR 2.0.50727)
Host: shark:2975
Proxy-Connection: Keep-Alive
Cookie: ASP.NET_SessionId=ci24ecmvkk0dc455ucya5yzc


HTTP/1.1 200 OK
Server: UltiDev Cassini/2.1.4.3
Date: Sun, 13 Apr 2008 15:45:37 GMT
X-AspNet-Version: 2.0.50727
Cache-Control: private
Content-Type: text/html; charset=utf-8
Content-Length: 4298
Connection: Close


Nigel
#12 Posted : Monday, April 14, 2008 12:16:03 AM(UTC)
Groups: Member
Joined: 4/8/2008(UTC)
Posts: 15

Further to my last post, I have run the app under IIS/5 on my local server to get a fiddler trace, which is appended. This too only sends the set-cookie once, but in this case it is in response to a successful user logon POST. With Cassini the session seems to be established by the very first GET (GoToApplication.aspx) and remains unchanged until it gets lost?

Appreciate any help you can give with this.

Fiddler headers from IIS/5
__________________________________________________________
GET /kiwi/ HTTP/1.1
Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/vnd.ms-powerpoint, application/vnd.ms-excel, application/msword, application/x-shockwave-flash, application/x-silverlight, */*
Accept-Language: en-gb
UA-CPU: x86
Accept-Encoding: gzip, deflate
User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; .NET CLR 1.0.3705; .NET CLR 2.0.50727)
Host: oyster
Proxy-Connection: Keep-Alive
If-Modified-Since: Mon, 12 Nov 2007 12:32:45 GMT
If-None-Match: "f2c3d0202825c81:1e95"


HTTP/1.1 304 Not Modified
Server: Microsoft-IIS/5.0
Date: Mon, 14 Apr 2008 08:39:50 GMT
X-Powered-By: ASP.NET
Content-Location: http://oyster/kiwi/Default.htm
ETag: "f2c3d0202825c81:1e96"
Content-Length: 0





GET /kiwi/home.axw HTTP/1.1
Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/vnd.ms-powerpoint, application/vnd.ms-excel, application/msword, application/x-shockwave-flash, application/x-silverlight, */*
Accept-Language: en-gb
UA-CPU: x86
Accept-Encoding: gzip, deflate
User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; .NET CLR 1.0.3705; .NET CLR 2.0.50727)
Host: oyster
Proxy-Connection: Keep-Alive


HTTP/1.1 200 OK
Server: Microsoft-IIS/5.0
Date: Mon, 14 Apr 2008 08:39:52 GMT
X-Powered-By: ASP.NET
X-AspNet-Version: 2.0.50727
Cache-Control: private
Content-Type: text/html; charset=utf-8
Content-Length: 150





GET /kiwi/UserLogon.axw HTTP/1.1
Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/vnd.ms-powerpoint, application/vnd.ms-excel, application/msword, application/x-shockwave-flash, application/x-silverlight, */*
Accept-Language: en-gb
UA-CPU: x86
Accept-Encoding: gzip, deflate
User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; .NET CLR 1.0.3705; .NET CLR 2.0.50727)
Host: oyster
Proxy-Connection: Keep-Alive


HTTP/1.1 200 OK
Server: Microsoft-IIS/5.0
Date: Mon, 14 Apr 2008 08:39:52 GMT
X-Powered-By: ASP.NET
X-AspNet-Version: 2.0.50727
Cache-Control: private
Content-Type: text/html; charset=utf-8
Content-Length: 4298





POST /kiwi/UserLogon.axw HTTP/1.1
Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/vnd.ms-powerpoint, application/vnd.ms-excel, application/msword, application/x-shockwave-flash, application/x-silverlight, */*
Referer: http://oyster/kiwi/UserLogon.axw
Accept-Language: en-gb
Content-Type: application/x-www-form-urlencoded
UA-CPU: x86
Accept-Encoding: gzip, deflate
User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; .NET CLR 1.0.3705; .NET CLR 2.0.50727)
Proxy-Connection: Keep-Alive
Content-Length: 61
Host: oyster
Pragma: no-cache


HTTP/1.1 200 OK
Server: Microsoft-IIS/5.0
Date: Mon, 14 Apr 2008 08:39:58 GMT
X-Powered-By: ASP.NET
X-AspNet-Version: 2.0.50727
Set-Cookie: ASP.NET_SessionId=ywckki553wzrpii1vvrfp2nm; path=/; HttpOnly
Cache-Control: private
Content-Type: text/html; charset=utf-8
Content-Length: 52





GET /kiwi/home.axw HTTP/1.1
Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/vnd.ms-powerpoint, application/vnd.ms-excel, application/msword, application/x-shockwave-flash, application/x-silverlight, */*
Accept-Language: en-gb
UA-CPU: x86
Accept-Encoding: gzip, deflate
User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; .NET CLR 1.0.3705; .NET CLR 2.0.50727)
Host: oyster
Proxy-Connection: Keep-Alive
Cookie: ASP.NET_SessionId=ywckki553wzrpii1vvrfp2nm


HTTP/1.1 200 OK
Server: Microsoft-IIS/5.0
Date: Mon, 14 Apr 2008 08:39:58 GMT
X-Powered-By: ASP.NET
X-AspNet-Version: 2.0.50727
Cache-Control: private
Content-Type: text/html; charset=utf-8
Content-Length: 17674





GET /kiwi/FrameLeft.axw HTTP/1.1
Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/vnd.ms-powerpoint, application/vnd.ms-excel, application/msword, application/x-shockwave-flash, application/x-silverlight, */*
Referer: http://oyster/kiwi/home.axw
Accept-Language: en-gb
UA-CPU: x86
Accept-Encoding: gzip, deflate
User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; .NET CLR 1.0.3705; .NET CLR 2.0.50727)
Proxy-Connection: Keep-Alive
Host: oyster
Cookie: ASP.NET_SessionId=ywckki553wzrpii1vvrfp2nm


HTTP/1.1 200 OK
Server: Microsoft-IIS/5.0
Date: Mon, 14 Apr 2008 08:39:58 GMT
X-Powered-By: ASP.NET
X-AspNet-Version: 2.0.50727
Cache-Control: private
Content-Type: text/html; charset=utf-8
Content-Length: 14747





GET /kiwi/FrameTop.axw HTTP/1.1
Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/vnd.ms-powerpoint, application/vnd.ms-excel, application/msword, application/x-shockwave-flash, application/x-silverlight, */*
Referer: http://oyster/kiwi/home.axw
Accept-Language: en-gb
UA-CPU: x86
Accept-Encoding: gzip, deflate
User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; .NET CLR 1.0.3705; .NET CLR 2.0.50727)
Proxy-Connection: Keep-Alive
Host: oyster
Cookie: ASP.NET_SessionId=ywckki553wzrpii1vvrfp2nm


HTTP/1.1 200 OK
Server: Microsoft-IIS/5.0
Date: Mon, 14 Apr 2008 08:39:58 GMT
X-Powered-By: ASP.NET
X-AspNet-Version: 2.0.50727
Cache-Control: private
Content-Type: text/html; charset=utf-8
Content-Length: 8397





GET /kiwi/FrameMain.axw HTTP/1.1
Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/vnd.ms-powerpoint, application/vnd.ms-excel, application/msword, application/x-shockwave-flash, application/x-silverlight, */*
Referer: http://oyster/kiwi/home.axw
Accept-Language: en-gb
UA-CPU: x86
Accept-Encoding: gzip, deflate
User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; .NET CLR 1.0.3705; .NET CLR 2.0.50727)
Proxy-Connection: Keep-Alive
Host: oyster
Cookie: ASP.NET_SessionId=ywckki553wzrpii1vvrfp2nm


HTTP/1.1 200 OK
Server: Microsoft-IIS/5.0
Date: Mon, 14 Apr 2008 08:39:58 GMT
X-Powered-By: ASP.NET
X-AspNet-Version: 2.0.50727
Cache-Control: private
Content-Type: text/html; charset=utf-8
Content-Length: 1228





GET /kiwi/alertCheck.axw HTTP/1.1
Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/vnd.ms-powerpoint, application/vnd.ms-excel, application/msword, application/x-shockwave-flash, application/x-silverlight, */*
Referer: http://oyster/kiwi/FrameTop.axw
Accept-Language: en-gb
UA-CPU: x86
Accept-Encoding: gzip, deflate
User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; .NET CLR 1.0.3705; .NET CLR 2.0.50727)
Proxy-Connection: Keep-Alive
Host: oyster
Cookie: ASP.NET_SessionId=ywckki553wzrpii1vvrfp2nm


HTTP/1.1 200 OK
Server: Microsoft-IIS/5.0
Date: Mon, 14 Apr 2008 08:39:59 GMT
X-Powered-By: ASP.NET
X-AspNet-Version: 2.0.50727
Cache-Control: private
Content-Type: text/html; charset=utf-8
Content-Length: 225





GET /kiwi/AlertListPage.axw HTTP/1.1
Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/vnd.ms-powerpoint, application/vnd.ms-excel, application/msword, application/x-shockwave-flash, application/x-silverlight, */*
Referer: http://oyster/kiwi/FrameMain.axw
Accept-Language: en-gb
UA-CPU: x86
Accept-Encoding: gzip, deflate
User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; .NET CLR 1.0.3705; .NET CLR 2.0.50727)
Proxy-Connection: Keep-Alive
Host: oyster
Cookie: ASP.NET_SessionId=ywckki553wzrpii1vvrfp2nm


HTTP/1.1 200 OK
Server: Microsoft-IIS/5.0
Date: Mon, 14 Apr 2008 08:40:01 GMT
X-Powered-By: ASP.NET
X-AspNet-Version: 2.0.50727
Cache-Control: private
Content-Type: text/html; charset=utf-8
Content-Length: 10564





GET /kiwi/AlertAck.axw?alertId=34162 HTTP/1.1
Accept: */*
Accept-Language: en-gb
UA-CPU: x86
Accept-Encoding: gzip, deflate
User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; .NET CLR 1.0.3705; .NET CLR 2.0.50727)
Host: oyster
Proxy-Connection: Keep-Alive
Cookie: ASP.NET_SessionId=ywckki553wzrpii1vvrfp2nm


HTTP/1.1 200 OK
Server: Microsoft-IIS/5.0
Date: Mon, 14 Apr 2008 08:40:05 GMT
X-Powered-By: ASP.NET
X-AspNet-Version: 2.0.50727
Cache-Control: private
Content-Type: text/html; charset=utf-8
Content-Length: 2868





GET /kiwi/ClientListPage.axw?findChr=0&findStr= HTTP/1.1
Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/vnd.ms-powerpoint, application/vnd.ms-excel, application/msword, application/x-shockwave-flash, application/x-silverlight, */*
Referer: http://oyster/kiwi/FrameMain.axw
Accept-Language: en-gb
UA-CPU: x86
Accept-Encoding: gzip, deflate
User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; .NET CLR 1.0.3705; .NET CLR 2.0.50727)
Proxy-Connection: Keep-Alive
Host: oyster
Cookie: ASP.NET_SessionId=ywckki553wzrpii1vvrfp2nm


HTTP/1.1 200 OK
Server: Microsoft-IIS/5.0
Date: Mon, 14 Apr 2008 08:40:08 GMT
X-Powered-By: ASP.NET
X-AspNet-Version: 2.0.50727
Cache-Control: private
Content-Type: text/html; charset=utf-8
Content-Length: 8272






Ultidev Team
#13 Posted : Monday, April 14, 2008 5:24:34 AM(UTC)
Ultidev Team

Groups: Administration
Joined: 11/3/2005(UTC)
Posts: 2,253

Thanks: 28 times
Was thanked: 60 time(s) in 59 post(s)
Nigel,

It's fine that application sets session cookie only once. It's enough as long as session did not have time to expire between two requests. Since your application does not specify explicit cookie expiration time, IE should always send back the cookie. The reason why it does not do it may be an indicator of a bug in IE. You could play a bit with the session cookie settings, for example, by making the cookie permanent or by extending session expiration time and see if IE will behave differrently. Or see whether FireFox does anything like it. We are going to Google for similar issues, but it does not look like this problem caused either by Cassini, or your application. Unfortunately we can't pinpoint the problem right now.. We'll keep working on this.

Best regards,
UltiDev Team.
Please donate at http://www.ultidev.com/products/Donate.aspx to help us improve our products.
Nigel
#14 Posted : Monday, April 14, 2008 10:02:18 AM(UTC)
Groups: Member
Joined: 4/8/2008(UTC)
Posts: 15

Hi, thanks again for the continued response.

Looking at the traces, I figured the main issue was that an asp.net session was started prior to starting into my app.

I have retried my app using the local port directly (e.g. http://shark:2975/ ) rather than going via your GoToApplication.aspx. The problem does not arise and this works from both my local pc and via other pcs on my network.

This leaves the problem of ascertaining which port the service is running from, so I wonder if it is possible / desireable to make GoToApplication.aspx run without any session state? I sense this would clear the whole issue if it were possible.

best regards
Ultidev Team
#15 Posted : Monday, April 14, 2008 10:30:28 AM(UTC)
Ultidev Team

Groups: Administration
Joined: 11/3/2005(UTC)
Posts: 2,253

Thanks: 28 times
Was thanked: 60 time(s) in 59 post(s)
Nigel, it's a good catch. We probably should not have used session in our Cassini Explorer application - the one where GoToApplication.aspx lives, or at least we should not have used default cookie name for ASP.NET session id cookie. We should be able to change that in the next release of Cassini, but you may be able to fix this problem by using non-default name for the session cookie, so that session ID generated by GoToApplication.aspx would not collide with your application's session. Take a look at the "cookieName" attribute of the sessionState setting in the web.config. Give it a name other than "ASP.NET_SessionId" and let us know if this has helped.

Best regards,
UltiDev Team.
Please donate at http://www.ultidev.com/products/Donate.aspx to help us improve our products.
Nigel
#16 Posted : Tuesday, April 15, 2008 2:01:36 AM(UTC)
Groups: Member
Joined: 4/8/2008(UTC)
Posts: 15

Many thanks for this ...

I updated my web.config as you suggested (see below), and can see (via fiddler) the newly named cookies being sent and returned alongside that of Cassini.

<sessionState
mode="InProc"
timeout="30"
cookieName="Kiwi.SessionId"
cookieless="false"
/>

It is very odd, but this appeared to work just once ... thereafter it reverted to the same problem. I have rebooted, restarted cassini, rebuilt the app, cleared out IE cookies, changed the web.config a few times (e.g. cookieless="useCookies") ... and still it fails. I sense there is still an underlying issue with IE, since the problem does not occur if there are two IE windows/tabs open.

Is there a way of determining / setting a predefined port for the application so that I can avoid using GoToApplication.aspx?

Ultidev Team
#17 Posted : Tuesday, April 15, 2008 5:41:37 AM(UTC)
Ultidev Team

Groups: Administration
Joined: 11/3/2005(UTC)
Posts: 2,253

Thanks: 28 times
Was thanked: 60 time(s) in 59 post(s)
Nigel,

Have you tried to reproduce this problem using another machine? May be it's something wrong with this particular system you are using as a client? IE behavior is truly bizarre.

There is a way to specify a static port of the application during installation. Please look at http://ultidev.com/produ...RedistirbWithVS2005.htm and search for "/AppPort" on the page to see how port can be set.

Best regards,
UltiDev Team.
Please donate at http://www.ultidev.com/products/Donate.aspx to help us improve our products.
Nigel
#18 Posted : Tuesday, April 15, 2008 5:54:28 AM(UTC)
Groups: Member
Joined: 4/8/2008(UTC)
Posts: 15

Hi

The problem is solid on two other PCs also ... I'm putting it down to bizarre IE, but a later release without a GetApplication session would be good. I can see that I can specify a port on the install, so will aim to use that for now.

Many thanks for all your help with this - it's a great way to deliver small office systems. Hope to go live on my app with this over the next month, very pleased ... thought I'd have to fight Cassini to do this!

best regards
Nigel
Ultidev Team
#19 Posted : Tuesday, April 15, 2008 1:06:52 PM(UTC)
Ultidev Team

Groups: Administration
Joined: 11/3/2005(UTC)
Posts: 2,253

Thanks: 28 times
Was thanked: 60 time(s) in 59 post(s)
Nigel,

Would you care to try this: modify Cassini Explorer's web.config so that it has <sessionState mode="Off" /> and see if that makes a difference. Cassini Explorer's location is "c:\Program Files\UltiDev\Cassini Web Server Explorer". You still would have to use static port to work around the issue with current release Of Cassini, but at least we would know whether its next release would take care of the problem.

Thank you for using UltiDev Cassini. We hope it will serve you well.

Best regards,
UltiDev Team.
Please donate at http://www.ultidev.com/products/Donate.aspx to help us improve our products.
Nigel
#20 Posted : Wednesday, April 16, 2008 2:46:56 AM(UTC)
Groups: Member
Joined: 4/8/2008(UTC)
Posts: 15

Hi

I modified your web.config as suggested, and can see from fiddler that there is no session or cookie from GoToApplication. The problem still occurs in exactly the same way - whether from my PC (running Cassini) or from another on the LAN.

I then wondered if it was anything to do with the redirection itself, so tried to emulate this with IIS using a simple asp page on my IIS server redirecting to the service running under IIS. That works fine. So, really drawing a blank on this.

NOT a stopper though!

best regards
Nigel
Rss Feed  Atom Feed
Users browsing this topic
Guest
2 Pages12>
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You can vote in polls in this forum.