954,595 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

How to pass session variables between two applications in one iis server

Hi fellas, i got two applications running under the same iis server. I want to pass session variables between these two applications, i.e. authenticate users in one application and allow them access in the other as well. What are my options to achieve this?

serkan sendur
Postaholic
Banned
2,062 posts since Jan 2008
Reputation Points: 854
Solved Threads: 127
 

Your easiest and best bet would be to create a transfer page that will read the contents of the current session variable. Then, create a loop that puts down a hidden input field with the id as the name of the session variable, and the value as the session value. Put this within a form and post it to the page on the other application, then loop through and resintate the session variables on the other application.

It's actually quite easy.

Otherwise you will have to change statemodes while many other things.

SheSaidImaPregy
Veteran Poster
1,080 posts since Sep 2007
Reputation Points: 43
Solved Threads: 68
 

you can use data base,
from the second application (after authentication has been done) you can query session variable from the browser and check the value of that data from data base.

DangerDev
Posting Pro in Training
485 posts since Jan 2008
Reputation Points: 165
Solved Threads: 59
 
you can use data base, from the second application (after authentication has been done) you can query session variable from the browser and check the value of that data from data base.

Thanks DangerDev, sounds logical

serkan sendur
Postaholic
Banned
2,062 posts since Jan 2008
Reputation Points: 854
Solved Threads: 127
 

This question has already been solved

Post: Markdown Syntax: Formatting Help
You