How can I share variable between web site ?

  • Thread starter Thread starter Sara T.
  • Start date Start date
S

Sara T.

All,

How can I share variable between web site ?

I mean that I have two web sites but I need to use the same variable, how
can I do ? I try to use session or application but it doesn't work.

PS: I use VB.NET to write web application in ASP.NET

Thanks for advance.
 
You can't share a variable between websites. You can pass a static value in
a URL, however.

--
Thanks,

Eric Lawrence
Program Manager
Assistance and Worldwide Services

This posting is provided "AS IS" with no warranties, and confers no rights.
 
I afraid that the information is so worthy and I need not to show via URL
because that may be taken to use at another windows by someone.

Any ideas are appreciated.
 
Post a form which contains a hidden variable from app1 to app2. Same as URL
solution, except you don't see it in the browser address bar.

Brad Williams
 
Sara T. said:
I afraid that the information is so worthy and I need not to show via URL
because that may be taken to use at another windows by someone.

Any ideas are appreciated.

The best is to use database to store confidential data for cross-site
access. Otherwise, use POST instead of GET. Post accepts larger payload and
hides your data (unencrypt). Or use SSL to encrypt data (costs you but it is
safe).

John
 
Post a hidden variable may be the good point at this moment.

Could you have some a little part of code to handle this issues ?
 
Thanks a lot.

But a difficult thing that I found is I have to add hidden variable in every
pages. Not like a session or application variable. But if it is a true
concept of developing web page, may be to follow.
 
I don't believe Server.Transfer will work as you expect between sites.

--
Thanks,

Eric Lawrence
Program Manager
Assistance and Worldwide Services

This posting is provided "AS IS" with no warranties, and confers no rights.
 
What risks to the information do you foresee? If you pass it in the URL or
a POST body, a user or upstream network device can view the data.

--
Thanks,

Eric Lawrence
Program Manager
Assistance and Worldwide Services

This posting is provided "AS IS" with no warranties, and confers no rights.
 
"Eric Lawrence said:
You can't share a variable between websites. You can pass a static value in
a URL, however.
Can you share one between different web apps on the same server?
Presumably a session variable would work in these circumstances?

Can you pas an object between web aps on the same server? Perhaps
you've created an object that defines say a product (or perhaps a user)
and has properties, How can that be defined in one web app but then
used in another (on the same server)?
 
Back
Top