经典的ASP和ASP.NET集成 [英] Classic ASP and ASP.NET Integration

查看:162
本文介绍了经典的ASP和ASP.NET集成的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在一个previous工作,我们有一个传统的ASP应用程序,没有人愿意迁移到ASP.NET。它做的事情,它的表现非常好。

In a previous job we had a classic ASP application that no one wanted to migrate to ASP.NET. The things that it did, it did very well.

但有一个需要补充的是,只是似乎最适合ASP.NET一些新的功能。该决定是为了让系统成为ASP和ASP.NET的一个奇怪的混合体。

However there was some new functionality that needed to be added that just seemed best suited to ASP.NET. The decision was made to allow the system to become a weird hybrid of ASP and ASP.NET.

我们的最大的症结是会话管理和我们一起砍死一个解决方案,通过表单变量传递会话值。我已经说过了其他人通过cookie处理了这个相同的问题。

Our biggest sticking point was session management and we hacked together a solution to pass session values through form variables. I've talked to others that handled this same problem through cookies.

这两种方法似乎一个可怕的克鲁格(除了是非常不安全的)。

Both methods seem a horrible kluge (in addition to being terribly insecure).

有没有更好或更清洁的方式或者这只是一个坏主意,开始与话题的讨论是没有意义的?

Is there a better or cleaner way or is this just such a bad idea to begin with that discussion on the topic is pointless?

推荐答案

你能不能会话数据持久化到一个服务器端数据存储?即XML文件,数据库等等。然后,您可以通过只(根据某些标准的安全标识会话计算),以一个.NET网页,其中可以从数据存储使用该标识挑选数据和填充您的会话数据的哈希。这仍然意味着不必从ASP通过代理每次请求传递到ASP.NET,以确保最新的会话数据在每个应用程序可用,但我不知道的另一种方式来实现这一点,我很害怕。

Can you not persist session data to a serverside data store? ie XML file, database etc. You could then pass just a hash (calculated based on some criteria that securely identifies the session) to a .NET page which can the pick the data up from the data store using this identifier and populate your session data. It still means having to pass requests from ASP to ASP.NET through a proxy each time to ensure the latest session data is available in each app but I don't know of an alternative way to achieve this I'm afraid.

这篇关于经典的ASP和ASP.NET集成的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆