473,387 Members | 1,897 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Passing Information Between Two ASP.NET Websites

I need to build website on my webserver which has information securely
passed to it from a web site running on a client's webserver.

My client has a website that has a secure login process running under
SSL. When a user has succesfully logged into that website they will be

able to follow a link to my website. As part of this link I need an id

of the user to be passed to my website so I know who the user is, I do

NOT need the user's username or password. The ids of all users is
already known to both websites.
My site can run using SSL and the simplest solution is to pass the id
of the user as part of the query string, i.e. the link is an anchor
with a HREF such as WWW.ADYSITE.CO.UK?id=123456789', but I do not know

how secure this is. I could envrypt the querystring so it is not
reable but I am not sure if this is necessary if I am using SSL, this
would mean that both the client and I would need to share envyption
keys.
I would like to limit the the amount of work the client will have to do

at their end so I need the simplest solution possible.
Any advice as to possible solutions would be welcome.
Regards
Ady

Apr 27 '06 #1
1 1890
you could encrypt the query string using .net's built in encryption support,
then use HttpUtility to Encode the string to make it url friendly.

(reply if you need an example)

end up with for eg.
http://sub.domain.com/postback.aspx?param=[your url friendly encrypted data]

This would rely on both servers knowing a shared encryption key and using
the same encryption algorithm.

Using SSL i the data passed between the servers will be encrypted - meaning
data intercepted between the servers will be secure, however the user would
be able to see the parameters being passed, in your case maybe their user id.

I would probably create a web service for doing what your suggesting. Very
similar method, just different implementation. Using VS.NET, create a web
service, it should be fairly obvious what to do with a little reading. You
then create a web reference to the service from the web app you want to call
the service. VS.NET creates a proxy class, which you can simply execute
methods from.

Food for thought

---------------------
Sam Martin
"an*****@valassis.co.uk" wrote:
I need to build website on my webserver which has information securely
passed to it from a web site running on a client's webserver.

My client has a website that has a secure login process running under
SSL. When a user has succesfully logged into that website they will be

able to follow a link to my website. As part of this link I need an id

of the user to be passed to my website so I know who the user is, I do

NOT need the user's username or password. The ids of all users is
already known to both websites.
My site can run using SSL and the simplest solution is to pass the id
of the user as part of the query string, i.e. the link is an anchor
with a HREF such as WWW.ADYSITE.CO.UK?id=123456789', but I do not know

how secure this is. I could envrypt the querystring so it is not
reable but I am not sure if this is necessary if I am using SSL, this
would mean that both the client and I would need to share envyption
keys.
I would like to limit the the amount of work the client will have to do

at their end so I need the simplest solution possible.
Any advice as to possible solutions would be welcome.
Regards
Ady

Apr 27 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Tom | last post by:
I know how to create a cookie using the HttpCookie. I know about setting its domain so it can be shared. So I have created a cookie on web site A and set it to expire in 10 minutes. Now I...
3
by: Simon Harvey | last post by:
Hi, In my application I get lots of different sorts of information from databases. As such, a lot of information is stored in DataSets and DataTable objects. Up until now, I have been passing...
7
by: Ken Allen | last post by:
I have a .net client/server application using remoting, and I cannot get the custom exception class to pass from the server to the client. The custom exception is derived from ApplicationException...
5
by: francois | last post by:
I would like to pass information between ASPX pages. For now, my navigation are hardcoded links. In some case I do a Response.Redirect("pages.aspx") Now I wonder is this is a good way to do. ...
4
by: David Gilbert | last post by:
Is better to pass the same SQL connection to all of my user controls. Should I make a global object for my SQL connection, or is there some other better choice out there. Thanks DG
14
by: BrendanMcPherson | last post by:
Hello, Im try to do some tricks to help make a "Search Many Sites from One Location". http://www.act.org.au/b_nexus.htm What I have decided to do is this: 1. You can choose which site you...
3
by: Stimp | last post by:
I am creating a DLL in VS.NET that will be used on .net and asp websites. What is the best way to pass a SQL connection string into the class methods? I can't use the web.config method since...
1
by: cmpcrand | last post by:
Hello my name is Craig. I am wondering if it is possible to have 2 websites that are based on the same web server and if somebody enters some information into a textbox on 1 page and then clicks...
2
by: Prefers Golfing | last post by:
I have two websites, Ping and Pong. I want to pass an object between them and have not had any luck with either HTTPSession or HTTPContext. Can this be done? Thanks. Ping code in button click...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.