Solved

Interesting problem when moving between environments

Posted on 2014-01-03
6
56 Views
Last Modified: 2016-06-13
Hey guys

I created this video to demonstrate what's going on. Essentially, we have two environments that are hosted on different servers. The one we host is using Umbraco and the other one is hosted with a third-party. The third-party uses a mask so that certain web-page requests are routed to our site. A problem arises however when users try to move back from our site to the other site -- I think it has something to do with caching, session state, or cookies. Any help or advice would be greatly appreciated. Thanks in advance!
0
Comment
Question by:LaBowski
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
6 Comments
 
LVL 35

Assisted Solution

by:Kimputer
Kimputer earned 500 total points
ID: 39756870
Seems it only happens in the unique situation if a customer arrives directly at:

http://www.sammamishmortgage.com/local/mortgage-company/states/WA/xxxxxxx

and then clicks on the Estimate Request, which throws the 404 because the cookie at that time is:

Cookie: ASP.NET_SessionId=; _ga= etc etc

Only after an .ASPXANONYMOUS= and ASP.NET_SessionId cookie has been given will it continue. Somehow, this cookie is given after you get the error, hit back, press link, get error, hit back, press link, get error, hit back, THEN press link again (now the cookie gets set).

Therefore I would suggest you to look if the cookie setting code is the same on your "normal" site and on the /local site, which resides on the same server (this has nothing to do with local.sammamishmortgage.com, as I never touched that server during testing). Just adding that code in the /local site would solve this problem is my suspicion.

On a side note, did you know google knows nothing about this www.sammamishmortgage.com/local/etc subfolder and local.sammamishmortgage.com site? This means this problem is currently non-existent  for regular visitors
0
 

Author Comment

by:LaBowski
ID: 39760215
So essentially, there is a cookie or session being dropped on the main website that needs to be added on our environment?
0
 
LVL 35

Accepted Solution

by:
Kimputer earned 500 total points
ID: 39760364
Yes the main site has cookies and sessions, while the /local site doesn't. Then jumping to the asp script of the main site causes this problem. Just add the same cookie code to the /local site
0
 

Author Comment

by:LaBowski
ID: 39763075
Doesn't asp.net have cookies and session turn on by default?
0
 
LVL 35

Expert Comment

by:Kimputer
ID: 39763142
You still need to put code in all the pages. It can't just magically do things by itself.
0

Featured Post

Don't miss ATEN at NAB Show April 24-27!

Visit ATEN at NAB Show to learn how our "Seamlessly Entertaining" solutions deliver fast, precise video streaming without delays for the broadcasting and media environment. ATEN will showcase its 16x16 Modular Matrix Switch (VM1600) and KVM Over IP Solution (KE6900 series).

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
asp.net mvc 2 32
I need help adding validation to my MVC.Net view 6 21
locate sql commands in C# visual studio Project 6 37
Broken .resx file generating errors 18 15
More often than not, we developers are confronted with a need: a need to make some kind of magic happen via code. Whether it is for a client, for the boss, or for our own personal projects, the need must be satisfied. Most of the time, the Framework…
Periodically we have to update or add SSL certificates for customers. Depending upon your hosting plan you may be responsible for the installation and/or key generation. In the wake of Heartbleed many sites were forced to re-key. We will concen…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…
Are you ready to implement Active Directory best practices without reading 300+ pages? You're in luck. In this webinar hosted by Skyport Systems, you gain insight into Microsoft's latest comprehensive guide, with tips on the best and easiest way…

735 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question