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

Please support our ASP.NET advertiser: Intel Parallel Studio Home
Thread Solved

Join Date: Jan 2008
Posts: 2,052
Reputation: serkan sendur is a glorious beacon of light serkan sendur is a glorious beacon of light serkan sendur is a glorious beacon of light serkan sendur is a glorious beacon of light serkan sendur is a glorious beacon of light serkan sendur is a glorious beacon of light 
Solved Threads: 121
Featured Poster
serkan sendur serkan sendur is offline Offline
Postaholic

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

 
0
  #1
Mar 5th, 2008
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?
Due to lack of freedom of speech, i no longer post on this website.
Reply With Quote Quick reply to this message  
Join Date: Sep 2007
Posts: 1,080
Reputation: SheSaidImaPregy is an unknown quantity at this point 
Solved Threads: 68
SheSaidImaPregy SheSaidImaPregy is offline Offline
Veteran Poster

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

 
0
  #2
Mar 5th, 2008
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.
Last edited by SheSaidImaPregy; Mar 5th, 2008 at 10:08 am.
Reply With Quote Quick reply to this message  
Join Date: Jan 2008
Posts: 483
Reputation: DangerDev has a spectacular aura about DangerDev has a spectacular aura about 
Solved Threads: 59
DangerDev's Avatar
DangerDev DangerDev is offline Offline
Posting Pro in Training

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

 
1
  #3
Mar 5th, 2008
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.
Freedom in the Mind, Faith in the words.. Pride in our Souls...
Indian Developer
http://falaque.wordpress.com/
Reply With Quote Quick reply to this message  
Join Date: Jan 2008
Posts: 2,052
Reputation: serkan sendur is a glorious beacon of light serkan sendur is a glorious beacon of light serkan sendur is a glorious beacon of light serkan sendur is a glorious beacon of light serkan sendur is a glorious beacon of light serkan sendur is a glorious beacon of light 
Solved Threads: 121
Featured Poster
serkan sendur serkan sendur is offline Offline
Postaholic

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

 
0
  #4
Mar 5th, 2008
Originally Posted by DangerDev View Post
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
Due to lack of freedom of speech, i no longer post on this website.
Reply With Quote Quick reply to this message  
Reply

This thread has been marked solved.
Perhaps start a new thread instead?
Message:



Other Threads in the ASP.NET Forum
Thread Tools Search this Thread



Tag cloud for ASP.NET
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC