I have a .net application which has a Basket.aspx page where the contents of the basket gets populated through values stored in Session . On clicking the Checkout button on the Basket.aspx it is redirected to Payment.aspx and also Basket.aspx
has http and Payment.aspx has https , it is here that the Session becomes empty but only in google chrome it works well in Internet Explorer.
I have searched a lot but non of the solution is working either it is because of the google chrome or because of transfer from http to https
Also only on google chrome on clicking Checkout on Basket.aspx it comes back to Basket.aspx with empty values instead of going to payment.aspx
Start by tracing the HTTP activity and look at the stages where the cookie is set, what settings are set with it (e.g. the secure flag) and then if/when the browser sends the cookie back to the server on subsequent requests. Without this info, it's hard
to determine what's happening.
Member
1 Points
181 Posts
Session lost
Jun 16, 2013 02:16 PM|ROHITJGC|LINK
I have a .net application which has a Basket.aspx page where the contents of the basket gets populated through values stored in Session . On clicking the Checkout button on the Basket.aspx it is redirected to Payment.aspx and also Basket.aspx
has http and Payment.aspx has https , it is here that the Session becomes empty but only in google chrome it works well in Internet Explorer.
I have searched a lot but non of the solution is working either it is because of the google chrome or because of transfer from http to https
Also only on google chrome on clicking Checkout on Basket.aspx it comes back to Basket.aspx with empty values instead of going to payment.aspx
Any solutions
All-Star
20376 Points
6505 Posts
ASPInsiders
MVP
Re: Session lost
Jun 16, 2013 02:41 PM|BrockAllen|LINK
Start by tracing the HTTP activity and look at the stages where the cookie is set, what settings are set with it (e.g. the secure flag) and then if/when the browser sends the cookie back to the server on subsequent requests. Without this info, it's hard to determine what's happening.
DevelopMentor | http://www.develop.com
thinktecture | http://www.thinktecture.com/
Contributor
6513 Points
604 Posts
Re: Session lost
Jun 17, 2013 03:04 AM|Chunyan Yu - MSFT|LINK
Hi,
Could you to check that on both servers the session is set to "StateServer" and that they both have the same state connection string:
Web.Config:
This means all session info is stored in the database - not the process of the application itself.
Hope that's helpful.
Feedback to us
Member
1 Points
181 Posts
Re: Session lost
Jun 17, 2013 10:42 AM|ROHITJGC|LINK
I need to do everything in InProc session state mode only
Following is Trace information on clicking the checkout button
Requests to this Application
Remaining: 0No.Time of RequestFileStatus CodeVerb 117/06/2013
14:44:41/Payment.aspx 302 GETView Details 217/06/2013
14:44:47/My-Basket.aspx 200 GETView Details 317/06/2013
14:44:49/App_Themes/Default/js/overlay.js200GETView Details 417/06/2013 14:44:49/App_Themes/Default/js/jquery.cookies.2.2.0.js200GETView
Details 517/06/2013 14:44:49/App_Themes/Default/navmenu.css200GETView Details 617/06/2013 14:44:49/App_Themes/Default/navmenu_ie6.css200GETView
Details 717/06/2013 14:44:49/App_Themes/Default/jquery.css200GETView Details 817/06/2013 14:44:49/App_Themes/Default/StyleSheet.css200GETView
Details 917/06/2013 14:44:49/App_Themes/Default/js/megamenu_plugins.js200GETView Details 1017/06/2013 14:44:49/App_Themes/Default/js/megamenu.js200GETView
Details 1117/06/2013 14:44:49/WebResource.axd200GETView Details 1217/06/2013 14:44:49/App_Themes/Default/js/popup.js200GETView
Details 1317/06/2013 14:44:49/ScriptResource.axd200GETView Details 1417/06/2013 14:44:50/App_Themes/Default/Images/vLogo.png200GETView
Details 1517/06/2013 14:44:50/App_Themes/Default/Images/recommended-deals/Adventure.jpg200GETView Details 1617/06/2013 14:44:50/App_Themes/Default/Images/recommended-deals/DealsoftheWeek.jpg200GETView
Details 1717/06/2013 14:44:50/App_Themes/Default/Images/recommended-deals/Driving.jpg200GETView Details 1817/06/2013 14:44:50/App_Themes/Default/Images/recommended-deals/Flying.jpg200GETView
Details 1917/06/2013 14:44:49/ScriptResource.axd200GETView Details 2017/06/2013 14:44:50/App_Themes/Default/Images/recommended-deals/ForCouples.jpg200GETView
Details 2117/06/2013 14:44:50/App_Themes/Default/Images/bg.jpg200GETView Details 2217/06/2013 14:44:50/App_Themes/Default/Images/recommended-deals/ForHim.jpg200GETView
Details 2317/06/2013 14:44:50/App_Themes/Default/Images/recommended-deals/Gourmet.jpg200GETView Details 2417/06/2013 14:44:50/App_Themes/Default/Images/rr-logo-small.png200GETView
Details 2517/06/2013 14:44:50/App_Themes/Default/Images/icons/payment-icons.png200GETView Details 2617/06/2013 14:44:50/App_Themes/Default/Images/recommended-deals/ForHer.jpg200GETView
Details 2717/06/2013 14:44:51/App_Themes/Default/Images/icons/tw.gif200GETView Details 2817/06/2013 14:44:51/App_Themes/Default/Images/icons/fb.gif200GETView
Details 2917/06/2013 14:44:51/App_Themes/Default/Images/wrap_bg.png200GETView Details 3017/06/2013 14:44:51/App_Themes/Default/Images/basket/update-bg.jpg200GETView
Details 3117/06/2013 14:44:51/App_Themes/Default/Images/nav/seperate.jpg200GETView Details 3217/06/2013 14:44:51/App_Themes/Default/Images/basket/checkout-bg.jpg200GETView
Details 3317/06/2013 14:44:51/App_Themes/Default/Images/seperator.jpg200GETView Details 3417/06/2013 14:44:51/App_Themes/Default/Images/basket/checkout-btn.png200GETView
Details 3517/06/2013 14:44:51/App_Themes/Default/Images/nav/search-bar.jpg200GETView Details 3617/06/2013 14:44:51/App_Themes/Default/Images/searchBtn.png200GETView
Details 3717/06/2013 14:44:51/App_Themes/img/down.gif404GETView Details 3817/06/2013 14:44:51/www.redribbon.ie/favicon.ico404GETView
Details 3917/06/2013 14:46:07/My-Basket.aspx200GETView Details 4017/06/2013 14:46:08/App_Themes/Default/js/jquery.cookies.2.2.0.js200GETView
Details
<div></div>All-Star
20376 Points
6505 Posts
ASPInsiders
MVP
Re: Session lost
Jun 17, 2013 11:05 AM|BrockAllen|LINK
This is your web server trace and is not sufficient for you to debug. You need to look at the HTTP level -- use something like fiddler.
DevelopMentor | http://www.develop.com
thinktecture | http://www.thinktecture.com/