473,407 Members | 2,312 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,407 software developers and data experts.

Transfer User ID between web apps

I have 2 asp.net applications : a Stock Control application and a Reporting
application. They are separate applications in IIS 6 and developed as
separate projects in visual studio.net.

When the user first goes into the Stock Control app, he needs to log in.
When he goes from the Stock Control app to the Reporting app, his User ID
needs to get transfered across so the Reporting app knows who the user is
(without asking him to log in again).

I don't want to use a querystring (because this will be visible), and the
session and cookies won't transfer across web applications.

How should I transfer the User ID from one application to another ?

Thanks,
Craig
Nov 19 '05 #1
5 1444
Craig,

Could you not just use a temporary cookie?

I presume you want to hide the ID so that anyone who sees the ID cant just
URL hack their way into the reporting page.

MattC

"Craig HB" <Cr*****@discussions.microsoft.com> wrote in message
news:29**********************************@microsof t.com...
I have 2 asp.net applications : a Stock Control application and a Reporting
application. They are separate applications in IIS 6 and developed as
separate projects in visual studio.net.

When the user first goes into the Stock Control app, he needs to log in.
When he goes from the Stock Control app to the Reporting app, his User ID
needs to get transfered across so the Reporting app knows who the user is
(without asking him to log in again).

I don't want to use a querystring (because this will be visible), and the
session and cookies won't transfer across web applications.

How should I transfer the User ID from one application to another ?

Thanks,
Craig

Nov 19 '05 #2
If you save a cookie from one web app, can another web app access that cookie
(they are different webs in IIS 6). I didn't think you could, but if you can,
that solves my problem.
Nov 19 '05 #3
You got me on that one.

I was thinking of the coookie type that is written to the clients computer.
But I am unsure as to how that data is accessed, stored.

MattC

"Craig HB" <Cr*****@discussions.microsoft.com> wrote in message
news:F7**********************************@microsof t.com...
If you save a cookie from one web app, can another web app access that
cookie
(they are different webs in IIS 6). I didn't think you could, but if you
can,
that solves my problem.

Nov 19 '05 #4
I do this with an encrypted URL. The URL consists of something like
x=1jhbsop4kgmr8r,spwkw...

I create a comma delimited string containing a date-time stamp and a userid.
I encrypt the string, URL-Encode the string equivalent of the encrypted text
and put it in the URL. The page receiving the special URL decrypts it and
uses the userid to authenticate the user. The date-time stamp is used to
"invalidate" the encrypted URL after an arbitrary amount of time. This
prevents someone from saving it and using it later in an unauthorized fashion.

Ideas abound....

"Craig HB" wrote:
If you save a cookie from one web app, can another web app access that cookie
(they are different webs in IIS 6). I didn't think you could, but if you can,
that solves my problem.

Nov 19 '05 #5
thanks for the help, Brad -- great suggestion.
Nov 19 '05 #6

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

Similar topics

3
by: Manuel Lopez | last post by:
Hello, We have two applications that will reside on the same webserver. We want to be able to post from pages in App1 to to pages in App2. We need to pass sensible data, so we cannot use...
1
by: mg | last post by:
I have two apps off wwwroot: App1/WebForm1.aspx App2/WebForm1.aspx In the code behind of App1/WebForm1.aspx, I have private void Button1_Click(object sender, System.EventArgs e)
2
by: Peter White | last post by:
I am trying to transfer a file from a user's local machine (the file is automatically created by a 3rd party tool and stored in the users local settings/temp directory) via a web form to my web...
5
by: aure_bobo | last post by:
Hi all, I'm currently developing a system with several webapps in ASP.NET/C#. One of my website is used to login user : I will call this website Webapp1. Depending on the user attributes, I...
3
by: Joseph S. | last post by:
Is there a system available to do the following: consider an app of a few pages: page1.php: form1----->page3.php form2----->page4.php page2.php: form3----->page3.php form4----->page4.php
23
by: barryfz | last post by:
I need to be able to move from one web app on my server to another on the same server and preserve the session state. I have played with server.transfer but I get an error saying I can't do this....
5
by: Steven Nagy | last post by:
Hi all, What are the major considerations when considering Server.Transfer? I have some legacy apps (when I say legacy, I mean ASP.NET1.0) that use Server.Transfer for almost everything. I...
0
Frinavale
by: Frinavale | last post by:
Platform: WindowsXP and IIS Language: Asp .NET (using Visual Basic back end) I'm not sure if anyone will be able to understand my code because its written using ASPX and Visual Basic back end. ...
1
by: =?Utf-8?B?c2hldWVydHo=?= | last post by:
Hi, I'm developing a reporting app that works as a subordinate to other apps, ie, users still see the menu structure for the app they're working in, but generate their report in my app. When...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
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...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.