[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now


Persistent security across two IIS servers.

Posted on 2014-08-27
Medium Priority
Last Modified: 2014-09-18

We're having a problem that the developer has suggested a solution to and we're not quite sure that's the right way of doing it and would like some input as to how we could resolve the issue.

So here's the synopsis of what we're doing currently:

We have a website that lives on one server.  Customers access it with their username and password.

This website at some point calls a second website (different IIS server) and performs some action(s).  

Then the second website returns the user to the first website for finalizing the business they were doing.

We have no choice in the multiple IIS servers.

We would like to keep customers who bookmark the link to the second server from re-accessing that URL after they close the browser and/or a time-out.  The developer suggested using Session ID's but I'm under the impression that the session ID would not be passed to the second server.  In addition the developer wants to create a SQL entry with a time-stamp of when this URL expires, but honestly I think we rather just have it expire when the client closes the browser.

So, to the question I think I'm asking.

Is there a cleaver way of making a URL ONLY work once.   I see ways of passing a UniqueIdentifier or something but is that the way to go?

We can't trust users pressing a "Logout" button, so it somehow has to be done by the site.

It's written in C# with visual studio 2013.

Thank you
Question by:prosit
LVL 84

Accepted Solution

Dave Baldwin earned 2000 total points
ID: 40289249
When this question came up before, I believe the solution was for the second server to query the first server to see if the user was currently logged into the first one.  If they are logged in, proceed.  If not, deny access.  That way all the tracking is done only on the first server.  You might even redirect them to the login page on the first server if they try to access the second server directly.  Cookies and/or SESSION data can be used to do the tracking.  Note that the second server will not be able to 'see' the session cookie for the first server.

Author Closing Comment

ID: 40331841
I'll give you the points since no one else cared... EE used to be better than this!

Featured Post


Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

Entity Framework is a powerful tool to help you interact with the DataBase but still doesn't help much when we have a Stored Procedure that returns more than one resultset. The solution takes some of out-of-the-box thinking; read on!
This guide will walk you through the essential considerations and tech stack for building scalable websites. Know how to grow your business the smart way!
The purpose of this video is to demonstrate how to exclude a particular blog category from the main blog page. This is can be used when a category already has its own tab, or you simply want certain types of posts not to show up on the main blog. …
The purpose of this video is to demonstrate how to Test the speed of a WordPress Website. Site Speed is an important metric of a site’s health. Slow site speed can result in viewers leaving your site quickly and not seeing your content. This…
Suggested Courses

834 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